Created
August 22, 2022 19:13
-
-
Save vijayinyoutube/544c04904be6ce04cc5366969fbd5903 to your computer and use it in GitHub Desktop.
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 _MyHomePageState extends State<MyHomePage> { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar(title: Text(widget.title)), | |
body: Container(), | |
floatingActionButton: ExpandableDraggableFab( | |
childrenCount: 1, | |
distance: 10, | |
children: [ | |
FloatingActionButton( | |
heroTag: "addBtn", | |
onPressed: () => Navigator.of(context).pushNamed('/add'), | |
child: const Icon(Icons.add)), | |
), | |
], | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment