home: changed drawer header & icons
This commit is contained in:
parent
85f122f5a2
commit
3ba9e5f5e6
1 changed files with 14 additions and 31 deletions
|
@ -29,44 +29,27 @@ class AllCollectionDrawer extends StatelessWidget {
|
||||||
padding: EdgeInsets.only(top: 6.0),
|
padding: EdgeInsets.only(top: 6.0),
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
'assets/aves_logo.svg',
|
'assets/aves_logo.svg',
|
||||||
width: 50,
|
width: 64,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
backgroundColor: Colors.white,
|
backgroundColor: Colors.white,
|
||||||
radius: 32,
|
radius: 44,
|
||||||
),
|
),
|
||||||
SizedBox(width: 16),
|
SizedBox(width: 16),
|
||||||
Text('Aves',
|
Text(
|
||||||
style: TextStyle(
|
'Aves',
|
||||||
fontSize: 42,
|
style: TextStyle(fontSize: 44),
|
||||||
)),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
SizedBox(height: 8),
|
SizedBox(height: 16),
|
||||||
Row(
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Row(children: [Icon(Icons.photo_library), SizedBox(width: 4), Text('${collection.imageCount}')]),
|
||||||
width: 72,
|
Row(children: [Icon(Icons.video_library), SizedBox(width: 4), Text('${collection.videoCount}')]),
|
||||||
child: Column(
|
Row(children: [Icon(Icons.photo_album), SizedBox(width: 4), Text('${collection.albumCount}')]),
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
Row(children: [Icon(Icons.label), SizedBox(width: 4), Text('${collection.tagCount}')]),
|
||||||
children: [
|
|
||||||
Text('${collection.imageCount}'),
|
|
||||||
Text('${collection.videoCount}'),
|
|
||||||
Text('${collection.albumCount}'),
|
|
||||||
Text('${collection.tagCount}'),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
SizedBox(width: 8),
|
|
||||||
Column(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
Text('images'),
|
|
||||||
Text('videos'),
|
|
||||||
Text('albums'),
|
|
||||||
Text('tags'),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -84,14 +67,14 @@ class AllCollectionDrawer extends StatelessWidget {
|
||||||
Divider(),
|
Divider(),
|
||||||
...albums.map((album) => _buildFilteredCollectionNavTile(
|
...albums.map((album) => _buildFilteredCollectionNavTile(
|
||||||
context: context,
|
context: context,
|
||||||
leading: Icon(Icons.photo_library),
|
leading: Icon(Icons.photo_album),
|
||||||
title: album,
|
title: album,
|
||||||
filter: (entry) => entry.bucketDisplayName == album,
|
filter: (entry) => entry.bucketDisplayName == album,
|
||||||
)),
|
)),
|
||||||
Divider(),
|
Divider(),
|
||||||
...tags.map((tag) => _buildFilteredCollectionNavTile(
|
...tags.map((tag) => _buildFilteredCollectionNavTile(
|
||||||
context: context,
|
context: context,
|
||||||
leading: Icon(Icons.label_outline),
|
leading: Icon(Icons.label),
|
||||||
title: tag,
|
title: tag,
|
||||||
filter: (entry) => entry.xmpSubjects.contains(tag),
|
filter: (entry) => entry.xmpSubjects.contains(tag),
|
||||||
)),
|
)),
|
||||||
|
|
Loading…
Reference in a new issue