Created
January 28, 2025 19:34
-
-
Save KrabCode/cbcb660fb50a1e8cb3d444831727f6b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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