Skip to content

Instantly share code, notes, and snippets.

@MCarlomagno
Created January 17, 2022 19:34
Show Gist options
  • Save MCarlomagno/b418e20c52e176b4ab543d59b4cf0dbf to your computer and use it in GitHub Desktop.
Save MCarlomagno/b418e20c52e176b4ab543d59b4cf0dbf to your computer and use it in GitHub Desktop.
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
void _downloadFile() {}
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: ElevatedButton.icon(
onPressed: _downloadFile,
icon: const Icon(Icons.download),
label: const Text('Download'),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment