From 6883acfff591d8085c1520b8071e6cca54bae14b Mon Sep 17 00:00:00 2001 From: Win Date: Wed, 24 Dec 2025 12:24:27 +0000 Subject: [PATCH] Added icons --- my_yaru_app/lib/main.dart | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/my_yaru_app/lib/main.dart b/my_yaru_app/lib/main.dart index 08172e2..bbf7f49 100644 --- a/my_yaru_app/lib/main.dart +++ b/my_yaru_app/lib/main.dart @@ -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) {