-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu_listview_design.dart
77 lines (72 loc) · 2.52 KB
/
menu_listview_design.dart
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import 'package:flutter/material.dart';
void main() {
runApp(Myapp());
}
class Myapp extends StatelessWidget{
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(),
drawer: Drawer(
child: ListView(
padding: EdgeInsets.zero,
// ignore: prefer_const_literals_to_create_immutables
children: [
const DrawerHeader(
decoration: BoxDecoration(
color:Colors.blue,
), child: CircleAvatar(
backgroundColor: Colors.green),
),
ListTile(
title: Text('Item 1',style: TextStyle(fontSize: 20),),
onTap: () {
},
),
ListTile(
title: Text('Item 2 ',style: TextStyle(fontSize: 20)),
onTap: () {
},
),
],
),
),
body: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
const Card(
child: ListTile(
title: Center(child: Text('Quotes Of Today',style: TextStyle(backgroundColor: Colors.blue),)),
subtitle: Text('Today I choose life. Every morning when I wake up I can choose joy, happiness, negativity, pain... To feel the freedom that comes from being able to continue to make mistakes and choices - today I choose to feel life, not to deny my humanity but embrace it.'),
isThreeLine: true,
),
),
Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
border: Border.all(color: Colors.black,width: 2)
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
Row(
children:[
Icon(Icons.star,color:Colors.yellowAccent[700],),
Icon(Icons.star,color:Colors.yellowAccent[700],),
Icon(Icons.star,color:Colors.yellowAccent[700],),
const Icon(Icons.star)
]
),
const Text('18 Reviews',style:TextStyle(fontSize: 18),),
],
),
),
],
),
),
),
);
}
}