M3 Overhaul
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import '../../theme/m3_motion.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:tasq/utils/app_time.dart';
|
||||
import 'package:geolocator/geolocator.dart';
|
||||
@@ -451,7 +452,7 @@ class _ScheduleTile extends ConsumerWidget {
|
||||
List<DutySchedule> recipientShifts = [];
|
||||
String? selectedTargetShiftId;
|
||||
|
||||
final confirmed = await showDialog<bool>(
|
||||
final confirmed = await m3ShowDialog<bool>(
|
||||
context: context,
|
||||
builder: (dialogContext) {
|
||||
return StatefulBuilder(
|
||||
@@ -614,7 +615,7 @@ class _ScheduleTile extends ConsumerWidget {
|
||||
required String title,
|
||||
required String message,
|
||||
}) async {
|
||||
await showDialog<void>(
|
||||
await m3ShowDialog<void>(
|
||||
context: context,
|
||||
builder: (dialogContext) {
|
||||
return AlertDialog(
|
||||
@@ -633,7 +634,7 @@ class _ScheduleTile extends ConsumerWidget {
|
||||
|
||||
Future<BuildContext> _showCheckInProgress(BuildContext context) {
|
||||
final completer = Completer<BuildContext>();
|
||||
showDialog<void>(
|
||||
m3ShowDialog<void>(
|
||||
context: context,
|
||||
barrierDismissible: false,
|
||||
builder: (dialogContext) {
|
||||
@@ -1140,7 +1141,7 @@ class _ScheduleGeneratorPanelState
|
||||
existing?.endTime ?? start.add(const Duration(hours: 8)),
|
||||
);
|
||||
|
||||
final result = await showDialog<_DraftSchedule>(
|
||||
final result = await m3ShowDialog<_DraftSchedule>(
|
||||
context: context,
|
||||
builder: (dialogContext) {
|
||||
return StatefulBuilder(
|
||||
@@ -2002,7 +2003,7 @@ class _SwapRequestsPanel extends ConsumerWidget {
|
||||
}
|
||||
|
||||
Profile? choice = eligible.first;
|
||||
final selected = await showDialog<Profile?>(
|
||||
final selected = await m3ShowDialog<Profile?>(
|
||||
context: context,
|
||||
builder: (context) {
|
||||
return AlertDialog(
|
||||
|
||||
Reference in New Issue
Block a user