From 009346df0ffdd7c76086117d4a950822724d4a33 Mon Sep 17 00:00:00 2001 From: Atharva Date: Sat, 13 Jul 2024 20:55:33 +0530 Subject: [PATCH] made notification color blue and changed the size , removed padding --- lib/new_ui/screens/main_screen/main_screen.dart | 10 +++++++++- .../main_screen/widgets/main_bottom_nav_bar.dart | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/new_ui/screens/main_screen/main_screen.dart b/lib/new_ui/screens/main_screen/main_screen.dart index df0c0e1..435793c 100644 --- a/lib/new_ui/screens/main_screen/main_screen.dart +++ b/lib/new_ui/screens/main_screen/main_screen.dart @@ -380,7 +380,15 @@ class _MainScreenState extends ConsumerState { height: 45, ), ), - (SharedPreferencesForDot.getNoOfNewNotification() - SharedPreferencesForDot.getNoOfNotification() != 0) ? Positioned(right: 0,top: 0,child: Container(alignment: Alignment.center,padding: EdgeInsets.all(6),decoration: BoxDecoration(color: Colors.red,shape: BoxShape.circle),child: Text("${SharedPreferencesForDot.getNoOfNewNotification() - SharedPreferencesForDot.getNoOfNotification()}",style: TextStyle(color: Colors.white,fontSize: 12),),),) : SizedBox(), + (SharedPreferencesForDot.getNoOfNewNotification() - SharedPreferencesForDot.getNoOfNotification() != 0) ? + Positioned(right: 0,top: 0, + child: Container( + height: 17, + width: 17, + alignment: Alignment.center, + decoration: BoxDecoration(color: oldDateSelectBlue,shape: BoxShape.circle) + ,child: Text("${SharedPreferencesForDot.getNoOfNewNotification() - SharedPreferencesForDot.getNoOfNotification()}",style: TextStyle(color: Colors.white,fontSize: 9),) + ,),) : SizedBox(), ], ), ), diff --git a/lib/new_ui/screens/main_screen/widgets/main_bottom_nav_bar.dart b/lib/new_ui/screens/main_screen/widgets/main_bottom_nav_bar.dart index fb2c968..3b0ccf1 100644 --- a/lib/new_ui/screens/main_screen/widgets/main_bottom_nav_bar.dart +++ b/lib/new_ui/screens/main_screen/widgets/main_bottom_nav_bar.dart @@ -117,7 +117,7 @@ class _HomeScreenState extends ConsumerState { icon: Stack( children: [ Icon(Icons.directions_railway_outlined), - SharedPreferencesForDot.getRailwayDot() ? Positioned(right: 0,top: 0,child: Icon(Icons.circle,color: Colors.red,size: 10,),) : SizedBox(), + SharedPreferencesForDot.getRailwayDot() ? Positioned(right: 0,top: 0,child: Icon(Icons.circle,color: oldDateSelectBlue,size: 10,),) : SizedBox(), ], ), activeIcon: Icon(Icons.directions_railway_filled),