In your pubspec.yaml
dependencies:
full_screen_menu: ^2.0.0
import 'package:full_screen_menu/full_screen_menu.dart';
FullScreenMenu.show(
context,
items: [
Image.asset('assets/image.png'),
FSMenuItem(
icon: Icon(Icons.ac_unit, color: Colors.white),
text: Text('Make colder'),
gradient: orangeGradient,
onTap: () => print('The weather is colder now');
),
FSMenuItem(
icon: Icon(Icons.wb_sunny, color: Colors.white),
text: Text('Make hotter'),
gradient: blueGradient,
onTap: () => print('The weather is hotter now');
),
],
);
This project is licensed under the Apache License 2.0 - see the LICENSE file for details