Created
June 4, 2019 18:26
-
-
Save JorgeCastilloPrz/9e52d35cd0a2b576b24b4f98f79d844e to your computer and use it in GitHub Desktop.
This is a simple sample app for running our custom StatefulWidget.
This file contains 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
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'FabLoader Demo', | |
theme: ThemeData( | |
primarySwatch: Colors.blue, | |
), | |
home: Scaffold( | |
appBar: AppBar( | |
title: Text('FabLoader Flutter Demo'), | |
), | |
body: Center( | |
child: Text('Empty state ¯\\_(ツ)_/¯'), | |
), | |
floatingActionButton: FabLoader( | |
child: FloatingActionButton( | |
onPressed: _fabPressed, | |
child: Icon(Icons.add), | |
), | |
), | |
)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment