Added icons
This commit is contained in:
parent
7f55546413
commit
6883acfff5
|
|
@ -35,9 +35,15 @@ class _Home extends StatelessWidget {
|
||||||
length: 2,
|
length: 2,
|
||||||
tileBuilder: (context, index, selected, availableWidth) {
|
tileBuilder: (context, index, selected, availableWidth) {
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
return YaruMasterTile(title: Text('Page 1'));
|
return YaruMasterTile(
|
||||||
|
title: Text('Home'),
|
||||||
|
leading: Icon(YaruIcons.home),
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
return YaruMasterTile(title: Text('Page 2'));
|
return YaruMasterTile(
|
||||||
|
title: Text('Page 2'),
|
||||||
|
leading: Icon(YaruIcons.video_filled),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
pageBuilder: (context, index) {
|
pageBuilder: (context, index) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue