Commit 16cd711c authored by Jasa Digital's avatar Jasa Digital

add trigger refresh

parent 400dfcbf
import 'package:flutter_bloc/flutter_bloc.dart';
class TriggerRefreshInConfirmationPage extends Cubit<bool> {
TriggerRefreshInConfirmationPage() : super(false);
void trigger(bool status) {
emit(status);
}
}
......@@ -33,6 +33,7 @@ import 'bloc/outlet_detail.dart';
import 'bloc/search_active.dart';
import 'bloc/search_branch.dart';
import 'bloc/search_history.dart';
import 'bloc/trigger_refresh_in_confirmation_page.dart';
import 'bloc/view_bill.dart';
import 'package:flutter/services.dart' as bundle_root;
......@@ -197,6 +198,7 @@ class _MyAppState extends State<MyApp> {
BlocProvider(create: (_) => AddressUser()),
BlocProvider(create: (_) => ExpandDetailOutlet()),
BlocProvider(create: (_) => ChangeDeliveryPickupBloc()),
BlocProvider(create: (_) => TriggerRefreshInConfirmationPage()),
],
child: MaterialApp(
title: (widget.title == null) ? defaultTitle : widget.title,
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment