Skip to content

Commit

Permalink
ptch: removes checkout button from menu screen
Browse files Browse the repository at this point in the history
  • Loading branch information
am-casper committed Dec 20, 2023
1 parent 533278c commit cc1c681
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions lib/presentation/bottom_navigator/bottom_navigator_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import 'package:appetizer/data/core/router/intrinsic_router/intrinsic_router.gr.
import 'package:appetizer/domain/repositories/coupon_repository.dart';
import 'package:appetizer/domain/repositories/leave/leave_repository.dart';
import 'package:appetizer/domain/repositories/menu_repository.dart';
import 'package:appetizer/presentation/app/bloc/app_bloc.dart';
import 'package:appetizer/domain/repositories/transaction_repositroy.dart';
import 'package:appetizer/presentation/components/round_edge_container.dart';
import 'package:appetizer/domain/repositories/user/user_repository.dart';
import 'package:appetizer/presentation/leaves_and_rebate/bloc/leaves_and_rebate_bloc.dart';
import 'package:appetizer/presentation/profile/bloc/profile_page_bloc.dart';
Expand Down Expand Up @@ -63,26 +61,6 @@ class BottomNavigatorScreen extends StatelessWidget {
return Scaffold(
backgroundColor: Colors.white,
body: child,
floatingActionButton: Visibility(
visible: tabRouter.activeIndex == 1,
child: BlocSelector<AppBloc, AppState, bool>(
selector: (appState) => appState.user!.isCheckedOut,
builder: (context, isCheckedOut) {
if (isCheckedOut) return const SizedBox();

return GestureDetector(
onTap: () {
context
.read<AppBloc>()
.add(const ToggleCheckOutStatusEvent());
},
child: const RoundEdgeTextOnlyContainer(text: "CHECK OUT"),
);
},
),
),
floatingActionButtonLocation:
FloatingActionButtonLocation.centerFloat,
bottomNavigationBar: BottomNavigationBar(
key: UniqueKey(),
currentIndex: tabRouter.activeIndex,
Expand Down

0 comments on commit cc1c681

Please sign in to comment.