📱 Responsive for desktop
This commit is contained in:
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -7,7 +7,7 @@ part of 'tour.dart';
|
||||
// **************************************************************************
|
||||
|
||||
String _$tourStatusNotifierHash() =>
|
||||
r'040aac2d7cf6d14e539c1b04cf311421ee133ed3';
|
||||
r'ee712e1f8010311df8f24838814ab5c451f9e593';
|
||||
|
||||
/// See also [TourStatusNotifier].
|
||||
@ProviderFor(TourStatusNotifier)
|
||||
|
Reference in New Issue
Block a user