Skip to content

Commit

Permalink
Merge pull request #201 from atharva-khewle/main
Browse files Browse the repository at this point in the history
blue dot
  • Loading branch information
atharva-khewle authored Jul 13, 2024
2 parents c6a21a3 + 25cf3eb commit a39758d
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 a39758d

Please sign in to comment.