| | |
| | | fToast!.init(context); |
| | | |
| | | //初始化 |
| | | _signInfo = SigninInfoModel( |
| | | continueSignInDay: 0, |
| | | isSignIned: true, |
| | | notify: true, |
| | | dayList: [ |
| | | DayList(day: "-", goldCorn: 0, state: 2, today: false), |
| | | DayList(day: "-", goldCorn: 0, state: 2, today: false), |
| | | DayList(day: "-", goldCorn: 0, state: 2, today: false), |
| | | DayList(day: "-", goldCorn: 0, state: 2, today: false), |
| | | DayList(day: "-", goldCorn: 0, state: 2, today: false), |
| | | DayList(day: "-", goldCorn: 0, state: 2, today: false), |
| | | DayList(day: "-", goldCorn: 0, state: 2, today: false), |
| | | ]); |
| | | |
| | | setState(() { |
| | | _signInfo = SigninInfoModel( |
| | | continueSignInDay: 0, |
| | | isSignIned: true, |
| | | notify: true, |
| | | dayList: [ |
| | | DayList(day: "-", goldCorn: 0, state: 2, today: false), |
| | | DayList(day: "-", goldCorn: 0, state: 2, today: false), |
| | | DayList(day: "-", goldCorn: 0, state: 2, today: false), |
| | | DayList(day: "-", goldCorn: 0, state: 2, today: false), |
| | | DayList(day: "-", goldCorn: 0, state: 2, today: false), |
| | | DayList(day: "-", goldCorn: 0, state: 2, today: false), |
| | | DayList(day: "-", goldCorn: 0, state: 2, today: false), |
| | | ]); |
| | | }); |
| | | _getSignInfo(); |
| | | _getNotify(); |
| | | _getTaskList(1); |
| | |
| | | }, |
| | | child: Padding( |
| | | padding: const EdgeInsets.only( |
| | | top: 5, bottom: 3), |
| | | top: 5, bottom: 2), |
| | | child: Image.asset( |
| | | _notify |
| | | ? "assets/imgs/task/icon_task_sign_notify_checked.png" |
| | |
| | | double? _sizeUnit; |
| | | |
| | | Widget getSignDayItem(DayList day) { |
| | | _sizeUnit ??= (MediaQuery.of(context).size.width) / 375; |
| | | if (_sizeUnit == null || _sizeUnit == 0) { |
| | | setState(() { |
| | | _sizeUnit = (MediaQuery.of(context).size.width) / 375; |
| | | }); |
| | | } |
| | | print("$_sizeUnit"); |
| | | return Expanded( |
| | | child: Column( |