modal_fit.dart
1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import 'package:flutter/material.dart';
class ModalFit extends StatelessWidget {
const ModalFit({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Material(
child: SafeArea(
top: false,
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
ListTile(
title: Text('Edit'),
leading: Icon(Icons.edit),
onTap: () => Navigator.of(context).pop(),
),
ListTile(
title: Text('Copy'),
leading: Icon(Icons.content_copy),
onTap: () => Navigator.of(context).pop(),
),
ListTile(
title: Text('Cut'),
leading: Icon(Icons.content_cut),
onTap: () => Navigator.of(context).pop(),
),
ListTile(
title: Text('Move'),
leading: Icon(Icons.folder_open),
onTap: () => Navigator.of(context).pop(),
),
ListTile(
title: Text('Delete'),
leading: Icon(Icons.delete),
onTap: () => Navigator.of(context).pop(),
)
],
),
));
}
}