📱 Responsive for desktop

This commit is contained in:
2025-05-21 00:04:36 +08:00
parent 1f2a5c107d
commit ea90364566
23 changed files with 761 additions and 440 deletions

View File

@ -1,8 +1,8 @@
import 'package:flutter/widgets.dart';
const kWideScreenWidth = 768;
const kWiderScreenWidth = 1024;
const kWidescreenWidth = 1280;
const kWideScreenWidth = 768.0;
const kWiderScreenWidth = 1024.0;
const kWidescreenWidth = 1280.0;
bool isWideScreen(BuildContext context) {
return MediaQuery.of(context).size.width > kWideScreenWidth;

View File

@ -53,7 +53,7 @@ class TourStatusNotifier extends _$TourStatusNotifier {
}
Future<Widget?> showTour(String tourId) async {
if (!isTourShown(tourId) || true) {
if (!isTourShown(tourId)) {
final newState = {...state, tourId: true};
await _saveState(newState);
return kAllTours.firstWhere((e) => e.id == tourId).widget;

View File

@ -7,7 +7,7 @@ part of 'tour.dart';
// **************************************************************************
String _$tourStatusNotifierHash() =>
r'040aac2d7cf6d14e539c1b04cf311421ee133ed3';
r'ee712e1f8010311df8f24838814ab5c451f9e593';
/// See also [TourStatusNotifier].
@ProviderFor(TourStatusNotifier)