Skip to content

Commit 325bdf4

Browse files
[ADD] toggle switch dependency and replace go navigation
1 parent 5ae0dc7 commit 325bdf4

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

lib/on_boarding/presentation/widgets/on_boarding_bottom_navigation.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class OnBoardingBottomNavigation extends StatelessWidget {
2727
child:GestureDetector(
2828
onTap: (){
2929
if(index == 2){
30-
context.push(RoutePath.auth);
30+
context.pushReplacement(RoutePath.auth);
3131
}else{
3232
onTap();
3333
}

pubspec.lock

+8
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,14 @@ packages:
190190
url: "https://pub.dev"
191191
source: hosted
192192
version: "2.0.3"
193+
flutter_switch:
194+
dependency: "direct main"
195+
description:
196+
name: flutter_switch
197+
sha256: b91477f926bba135d2d203d7b24367492662d8d9c3aa6adb960b14c1087d3c41
198+
url: "https://pub.dev"
199+
source: hosted
200+
version: "0.3.2"
193201
flutter_test:
194202
dependency: "direct dev"
195203
description: flutter

pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ dependencies:
4141
get_it:
4242
shared_preferences:
4343
equatable:
44+
flutter_switch: ^0.3.2
4445

4546

4647

0 commit comments

Comments
 (0)