You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
HMG_Patient_App/lib/new_ui/new_ext.dart

14 lines
346 B
Dart

import 'package:flutter/material.dart';
extension ShowBottomSheet on BuildContext {
Future<T?> showBottomSheet<T>({required Widget child}) {
return showModalBottomSheet<T>(
context: this,
isScrollControlled: true,
isDismissible: false,
backgroundColor: Colors.transparent,
builder: (_) => child,
);
}
}