M3 Overhaul
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import '../theme/m3_motion.dart';
|
||||
|
||||
/// Lightweight, bounds-safe multi-select picker used in dialogs.
|
||||
/// - Renders chips for selected items and a `Select` ActionChip.
|
||||
@@ -43,7 +44,7 @@ class _MultiSelectPickerState<T> extends State<MultiSelectPicker<T>> {
|
||||
List<String>? result;
|
||||
|
||||
if (isMobile) {
|
||||
result = await showModalBottomSheet<List<String>>(
|
||||
result = await m3ShowBottomSheet<List<String>>(
|
||||
context: context,
|
||||
isScrollControlled: true,
|
||||
builder: (sheetContext) {
|
||||
@@ -132,7 +133,7 @@ class _MultiSelectPickerState<T> extends State<MultiSelectPicker<T>> {
|
||||
child: const Text('Cancel'),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
ElevatedButton(
|
||||
FilledButton(
|
||||
onPressed: () =>
|
||||
Navigator.of(sheetContext).pop(working),
|
||||
child: const Text('Done'),
|
||||
@@ -148,9 +149,8 @@ class _MultiSelectPickerState<T> extends State<MultiSelectPicker<T>> {
|
||||
},
|
||||
);
|
||||
} else {
|
||||
result = await showDialog<List<String>>(
|
||||
result = await m3ShowDialog<List<String>>(
|
||||
context: context,
|
||||
useRootNavigator: true,
|
||||
builder: (dialogContext) {
|
||||
List<String> working = List<String>.from(_selectedIds);
|
||||
bool workingSelectAll =
|
||||
@@ -232,7 +232,7 @@ class _MultiSelectPickerState<T> extends State<MultiSelectPicker<T>> {
|
||||
onPressed: () => Navigator.of(dialogContext).pop(),
|
||||
child: const Text('Cancel'),
|
||||
),
|
||||
ElevatedButton(
|
||||
FilledButton(
|
||||
onPressed: () =>
|
||||
Navigator.of(dialogContext).pop(working),
|
||||
child: const Text('Done'),
|
||||
|
||||
Reference in New Issue
Block a user