File tree Expand file tree Collapse file tree 4 files changed +24
-6
lines changed Expand file tree Collapse file tree 4 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 1
1
import 'package:flutter/cupertino.dart' ;
2
2
import 'package:flutter/material.dart' ;
3
+ import 'package:flutter_feather_icons/flutter_feather_icons.dart' ;
3
4
4
5
import '../widgets/navdrawer.dart' ;
5
6
@@ -74,19 +75,19 @@ class _HomeState extends State<Home> {
74
75
items: const [
75
76
BottomNavigationBarItem (
76
77
icon: Icon (
77
- Icons .star ,
78
+ FeatherIcons .alignCenter ,
78
79
size: 30 ,
79
80
),
80
81
),
81
82
BottomNavigationBarItem (
82
83
icon: Icon (
83
- Icons .edit_note ,
84
+ FeatherIcons .plusCircle ,
84
85
size: 30 ,
85
86
),
86
87
),
87
88
BottomNavigationBarItem (
88
89
icon: Icon (
89
- Icons .deblur ,
90
+ FeatherIcons .aperture ,
90
91
size: 30 ,
91
92
),
92
93
),
Original file line number Diff line number Diff line change @@ -17,9 +17,17 @@ class NavDrawer extends StatelessWidget {
17
17
if (auth.authenticated) {
18
18
return ListView (
19
19
children: [
20
- ListTile (
21
- title: Text (auth.user? .email ?? '' ),
22
- ),
20
+ // ignore: unnecessary_null_comparison
21
+ DrawerHeader (child: auth== null ? CircleAvatar (
22
+ backgroundColor: Colors .blue,
23
+ ): ListTile (
24
+ leading: CircleAvatar (
25
+ backgroundColor: Colors .blue,
26
+ ),
27
+ title: Text (auth.user? .name?? '' ),
28
+ subtitle: Text (auth.user? .email?? '' ),
29
+ trailing: Text (auth.user? .id?? '' ),
30
+ )),
23
31
ListTile (
24
32
title: Text ('posts' ),
25
33
onTap: () => Navigator .push (context,
Original file line number Diff line number Diff line change @@ -81,6 +81,14 @@ packages:
81
81
url: "https://pub.dev"
82
82
source: hosted
83
83
version: "1.3.1"
84
+ feather_icons:
85
+ dependency: "direct main"
86
+ description:
87
+ name: feather_icons
88
+ sha256: "9fe1e52305fc363c3ee08cabaef32526e2e8ce53091c7b70f9c774460a1f03ae"
89
+ url: "https://pub.dev"
90
+ source: hosted
91
+ version: "1.2.0"
84
92
flutter:
85
93
dependency: "direct main"
86
94
description: flutter
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ dependencies:
43
43
flutter_svg : ^1.1.6
44
44
smooth_page_indicator : ^1.0.0+2
45
45
flutter_feather_icons : ^2.0.0+1
46
+ feather_icons : ^1.2.0
46
47
47
48
dev_dependencies :
48
49
flutter_test :
You can’t perform that action at this time.
0 commit comments