Skip to content

Instantly share code, notes, and snippets.

@JorgeCastilloPrz
Created June 4, 2019 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JorgeCastilloPrz/9e52d35cd0a2b576b24b4f98f79d844e to your computer and use it in GitHub Desktop.
Save JorgeCastilloPrz/9e52d35cd0a2b576b24b4f98f79d844e to your computer and use it in GitHub Desktop.
This is a simple sample app for running our custom StatefulWidget.
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