Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 29a9670

Browse files
🎁 AppDrawer
1 parent 4710d48 commit 29a9670

File tree

4 files changed

+71
-2
lines changed

4 files changed

+71
-2
lines changed

‎images/icon.png‎

19.2 KB
Loading[フレーム]

‎images/logo.jpg‎

178 KB
Loading[フレーム]

‎lib/viewer.dart‎

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'package:passkeep/gloab.dart';
44
import 'package:passkeep/lowlevel/file.dart';
55
import 'package:passkeep/passViewer.dart';
66
import 'package:passkeep/widgets.dart';
7+
import 'package:passkeep/entry.dart';
78

89
class ViewerInit extends StatelessWidget {
910
@override
@@ -26,6 +27,74 @@ class Viewer extends StatelessWidget {
2627
@override
2728
Widget build(BuildContext context) {
2829
return Scaffold(
30+
drawer: Drawer(
31+
child: ListView(
32+
padding: EdgeInsets.zero,
33+
children: [
34+
const UserAccountsDrawerHeader(
35+
currentAccountPicture: CircleAvatar(
36+
backgroundImage: AssetImage("images/icon.png"),
37+
backgroundColor: Colors.white,
38+
//backgroundImage: Image(image: AssetImage('images/logo.jpg', width: 100.0, height: 100.0)),
39+
),
40+
accountEmail: Text(
41+
"https://sachan1.netlify.app/",
42+
style: TextStyle(color: Colors.blue),
43+
),
44+
accountName: Text('Akshat Sachan',
45+
style: TextStyle(fontSize: 24.0, color: Colors.teal)),
46+
decoration: BoxDecoration(
47+
color: Colors.black87,
48+
),
49+
),
50+
ListTile(
51+
// leading: const Icon(Icons.house),
52+
title: const Text(
53+
'THANKS FOR USING !!',
54+
style: TextStyle(fontSize: 24.0, color: Colors.blue),
55+
),
56+
onTap: () {
57+
Navigator.pushReplacement(
58+
context,
59+
MaterialPageRoute<void>(
60+
builder: (BuildContext context) => Entry(
61+
//text: 'Houses',
62+
),
63+
),
64+
);
65+
},
66+
),
67+
ListTile(
68+
// leading: const Icon(Icons.apartment),
69+
title: const Text(
70+
'\n\nMADE BY : Akshat Sachan\n\n',
71+
style: TextStyle(fontSize: 18.0),
72+
),
73+
74+
onTap: () {
75+
Navigator.pushReplacement(
76+
context,
77+
MaterialPageRoute<void>(
78+
builder: (BuildContext context) => Entry(),
79+
// title: 'Apartments',
80+
),
81+
// ),
82+
);
83+
},
84+
),
85+
CircleAvatar(
86+
backgroundColor: Colors.white,
87+
child: Image.asset(
88+
'images/logo.jpg',
89+
width: 800.0,
90+
height: 800.0,
91+
),
92+
//backgroundImage: Image(image: AssetImage('images/logo.jpg', width: 100.0, height: 100.0)),
93+
),
94+
],
95+
),
96+
),
97+
// appBar: _appBar(),
2998
backgroundColor: back,
3099
floatingActionButton: FloatingActionButton(
31100
child: Icon(Icons.add),

‎pubspec.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ flutter:
4848
uses-material-design: true
4949

5050
# To add assets to your application, add an assets section, like this:
51-
#assets:
52-
#- images/a_dot_burr.jpeg
51+
assets:
52+
- images/
5353
# - images/a_dot_ham.jpeg
5454

5555
# An image asset can refer to one or more resolution-specific "variants", see

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /