Added icons

This commit is contained in:
Win 2025-12-24 12:24:27 +00:00
parent 7f55546413
commit 6883acfff5
1 changed files with 8 additions and 2 deletions

View File

@ -35,9 +35,15 @@ class _Home extends StatelessWidget {
length: 2,
tileBuilder: (context, index, selected, availableWidth) {
if (index == 0) {
return YaruMasterTile(title: Text('Page 1'));
return YaruMasterTile(
title: Text('Home'),
leading: Icon(YaruIcons.home),
);
} else {
return YaruMasterTile(title: Text('Page 2'));
return YaruMasterTile(
title: Text('Page 2'),
leading: Icon(YaruIcons.video_filled),
);
}
},
pageBuilder: (context, index) {