Skip to content

Instantly share code, notes, and snippets.

@KrabCode
Created January 28, 2025 19:34
Show Gist options
  • Save KrabCode/cbcb660fb50a1e8cb3d444831727f6b6 to your computer and use it in GitHub Desktop.
Save KrabCode/cbcb660fb50a1e8cb3d444831727f6b6 to your computer and use it in GitHub Desktop.
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
spacing: 50,
children: <Widget>[
Text(
'floppy fish',
style: TextStyle(
fontFamily: "monospace",
fontStyle: FontStyle.italic,
fontSize: Theme.of(context).textTheme.displaySmall!.fontSize,
),
),
AnimatedRotation(
turns: _counter / 2 + 0.03,
curve: Curves.fastOutSlowIn,
duration: Duration(milliseconds: 700),
child: SizedBox(
height: 300,
child: Image.asset(
"images/PNG-cards-1.3/black_joker.png",
)))
],
),
),
floatingActionButton: FloatingActionButton(
backgroundColor: Theme.of(context).colorScheme.inverseSurface,
onPressed: _incrementCounter,
tooltip: 'Increment',
child: const Icon(Icons.rotate_left),
), // This trailing comma makes auto-formatting nicer for build methods.
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment