Skip to content

Instantly share code, notes, and snippets.

@MCarlomagno
Created January 17, 2022 19:38
Show Gist options
  • Save MCarlomagno/28f793e390ebaa2f94c73263f3abc995 to your computer and use it in GitHub Desktop.
Save MCarlomagno/28f793e390ebaa2f94c73263f3abc995 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
class DownloadButton extends StatelessWidget {
const DownloadButton({Key? key}) : super(key: key);
void _downloadFile() {}
@override
Widget build(BuildContext context) {
return 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