refactor: Update to Dart 3.10 with . shorthands
This commit is contained in:
parent
75a37f3f7c
commit
1ea649f01e
167 changed files with 3351 additions and 3912 deletions
|
|
@ -21,10 +21,7 @@ Future<T?> showAdaptiveBottomSheet<T>({
|
|||
builder: (context) => Center(
|
||||
child: Container(
|
||||
margin: const EdgeInsets.all(16),
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 480,
|
||||
maxHeight: 720,
|
||||
),
|
||||
constraints: const BoxConstraints(maxWidth: 480, maxHeight: 720),
|
||||
child: Material(
|
||||
elevation: Theme.of(context).dialogTheme.elevation ?? 4,
|
||||
shadowColor: Theme.of(context).dialogTheme.shadowColor,
|
||||
|
|
@ -42,11 +39,9 @@ Future<T?> showAdaptiveBottomSheet<T>({
|
|||
context: context,
|
||||
builder: (context) => ConstrainedBox(
|
||||
constraints: BoxConstraints(
|
||||
maxHeight: MediaQuery.viewInsetsOf(context).bottom +
|
||||
min(
|
||||
MediaQuery.sizeOf(context).height - 32,
|
||||
600,
|
||||
),
|
||||
maxHeight:
|
||||
MediaQuery.viewInsetsOf(context).bottom +
|
||||
min(MediaQuery.sizeOf(context).height - 32, 600),
|
||||
),
|
||||
child: builder(context),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue