Skip to content

Instantly share code, notes, and snippets.

@vstacked
Created November 27, 2021 10:36
Show Gist options
  • Select an option

  • Save vstacked/52e8cac2ec08ee4ca30c89fa2dad7acd to your computer and use it in GitHub Desktop.

Select an option

Save vstacked/52e8cac2ec08ee4ca30c89fa2dad7acd to your computer and use it in GitHub Desktop.
Column(
children: [
IconButton(
icon: ShaderMask(
shaderCallback: (bounds) => LinearGradient(
begin: Alignment.centerLeft,
colors: [
Colors.orange.shade100,
Colors.orange.shade900,
],
tileMode: TileMode.mirror,
).createShader(bounds),
child: const Icon(
Icons.movie_creation,
color: Colors.white,
),
),
iconSize: 35,
color: Colors.black,
onPressed: () {},
),
FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: ShaderMask(
shaderCallback: (bounds) => LinearGradient(
begin: Alignment.centerLeft,
colors: [
Colors.orange.shade100,
Colors.orange.shade900,
],
tileMode: TileMode.mirror,
).createShader(bounds),
child: const Icon(Icons.add, color: Colors.white),
),
)
],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment