Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreya-Bhatia committed Jul 13, 2024
2 parents f115af9 + cf7ee31 commit adb8b55
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion lib/new_ui/screens/main_screen/main_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,15 @@ class _MainScreenState extends ConsumerState<MainScreen> {
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(),
],
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class _HomeScreenState extends ConsumerState<MainBottomNavBar> {
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),
Expand Down

0 comments on commit adb8b55

Please sign in to comment.