Created project base structure, state management, router and login
This commit is contained in:
29
lib/utils/process_modal.dart
Normal file
29
lib/utils/process_modal.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:my_linkding/widgets/process_dialog.dart';
|
||||
|
||||
import 'package:my_linkding/router/routes.dart';
|
||||
|
||||
class ProcessModal {
|
||||
void open(String message) async {
|
||||
await Future.delayed(
|
||||
const Duration(seconds: 0),
|
||||
() => {
|
||||
showDialog(
|
||||
context: rootNavigatorKey.currentContext!,
|
||||
builder: (ctx) {
|
||||
return ProcessDialog(
|
||||
message: message,
|
||||
);
|
||||
},
|
||||
barrierDismissible: false,
|
||||
useSafeArea: true,
|
||||
),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
void close() {
|
||||
Navigator.pop(rootNavigatorKey.currentContext!);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user