update drawer document.

null_safety
小赖 4 years ago
parent 579fb8e260
commit 5393481929

@ -4,7 +4,11 @@ import 'package:ansu_ui/utils/screen_adapter.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
/// ///
Future showASDrawer(Widget drawer) async { ///
///pass a value through navigator.
///
///example `Navigator.pop(context,true)` or `Get.back(result:true)`
Future<T> showASDrawer<T>(Widget drawer) async {
return await Get.generalDialog( return await Get.generalDialog(
pageBuilder: (context, animation, secondAnimation) { pageBuilder: (context, animation, secondAnimation) {
return drawer; return drawer;

Loading…
Cancel
Save