Skip to content

Instantly share code, notes, and snippets.

@vijayinyoutube
Created August 22, 2022 19:13
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 vijayinyoutube/544c04904be6ce04cc5366969fbd5903 to your computer and use it in GitHub Desktop.
Save vijayinyoutube/544c04904be6ce04cc5366969fbd5903 to your computer and use it in GitHub Desktop.
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