WIP
This commit is contained in:
parent
1da4899d5a
commit
09b339da8d
|
@ -3,6 +3,7 @@ import 'dart:developer';
|
|||
|
||||
import 'package:hub/flutter_flow/nav/nav.dart';
|
||||
import 'package:hub/flutter_flow/nav/serialization_util.dart';
|
||||
import 'package:hub/shared/utils/dialog_util.dart';
|
||||
|
||||
import '/backend/api_requests/api_calls.dart';
|
||||
import '/components/molecular_components/throw_exception/throw_exception_widget.dart';
|
||||
|
@ -841,6 +842,8 @@ class _ViewVisitDetailWidgetState extends State<ViewVisitDetailWidget> {
|
|||
false) {
|
||||
Navigator.pop(context);
|
||||
} else {
|
||||
final error =
|
||||
await DialogUtil.errorDefault(context);
|
||||
await showModalBottomSheet(
|
||||
isScrollControlled: true,
|
||||
backgroundColor: Colors.transparent,
|
||||
|
@ -849,11 +852,7 @@ class _ViewVisitDetailWidgetState extends State<ViewVisitDetailWidget> {
|
|||
builder: (context) {
|
||||
return Padding(
|
||||
padding: MediaQuery.viewInsetsOf(context),
|
||||
child: ThrowExceptionWidget(
|
||||
msg: PhpGroup.deleteVisitCall.msg(
|
||||
(_model.deleteVisit?.jsonBody ?? ''),
|
||||
)!,
|
||||
),
|
||||
child: error,
|
||||
);
|
||||
},
|
||||
).then((value) => safeSetState(() {}));
|
||||
|
|
|
@ -157,10 +157,10 @@ class PreferencesPageModel with ChangeNotifier {
|
|||
notifica: FFAppState().notify ? 'S' : 'N',
|
||||
)
|
||||
.then((value) {
|
||||
Navigator.pop(context);
|
||||
if (value.jsonBody['error'] == false) {
|
||||
FFAppState().notify = !FFAppState().notify;
|
||||
Navigator.pop(context);
|
||||
|
||||
FFAppState().notify = !FFAppState().notify;
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(
|
||||
|
|
Loading…
Reference in New Issue