import 'package:fast/model/model.dart'; import 'package:fast/view/component/fast.dart'; import 'package:flutter/material.dart'; class Global{ static final Global _instance = Global._internal(); RouteObserver? routeObserver; String token = ''; int timeSeconds = 0;//与服务器的时间戳差 bool firstStart = false; //是否从未开始过 bool showDialog = false; //是否存在弹窗,防止同一时间多次弹窗的情况 int fastHour = 16; //断食小时 int fastMinute = 0; //断食分钟 int balance = 0; bool showLogin = false; //是否显示登录页面 bool allowNotification = false; //是否允许推送 bool thirdLogin = false; //是否允许第三方登录 bool pushEnable = false; //是否强制推送 bool payEnable = false; //是否支持支付 bool showCheckin = false; double circleWidth = 0.0; double paintWidth = 0.0; double progressWidth = 0.0; double scale = 1.0; FastBean? currentFast; UserBean? userBean; GlobalKey? fastKey; dynamic mainPage; dynamic homePage; factory Global(){ return _instance; } Global._internal(){ init(); } void init(){ } }