Skip to content

Commit

Permalink
调课补课的加回来了
Browse files Browse the repository at this point in the history
  • Loading branch information
nano71 committed Dec 25, 2024
1 parent b7d41d2 commit f4154cd
Show file tree
Hide file tree
Showing 20 changed files with 170 additions and 108 deletions.
4 changes: 2 additions & 2 deletions android/local.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sdk.dir=C:\\sdk\\android-sdk
flutter.sdk=C:\\sdk\\flutter
flutter.buildMode=debug
flutter.versionName=1.6.241211
flutter.buildMode=release
flutter.versionName=1.6.241225
flutter.versionCode=75
3 changes: 3 additions & 0 deletions lib/common/get.dart
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ Future<dynamic> getSchedule() async {
}

Future<Map> getScheduleChanges(String id, Map schedule) async {
if ((AppData.persistentData["showScheduleChange"] ?? "0") == "0") {
return schedule;
}
print('getScheduleChanges');
print("获取课表变更(调课/停课/补课)");
print('id: ' + id);
Expand Down
1 change: 1 addition & 0 deletions lib/data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class AppData {
"threshold": "5",
"showLessonTimeInList": "0",
"showDayByWeekDay": "0",
"showScheduleChange": "0",
"newVersion": "",
"newBody": "",
"newTime": "",
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/about.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_remix/flutter_remix.dart';
import 'package:remixicon/remixicon.dart';

import '/custom/expansiontile.dart' as CustomExpansionTile;
import '/widget/bars.dart';
Expand Down Expand Up @@ -28,7 +28,7 @@ class _InfoPageState extends State<InfoPage> {
publicTopBar(
"说明",
InkWell(
child: Icon(FlutterRemix.close_line, size: 24),
child: Icon(Remix.close_line, size: 24),
onTap: () {
Navigator.of(context).pop();
},
Expand Down
10 changes: 5 additions & 5 deletions lib/pages/career.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter_remix/flutter_remix.dart';
import 'package:remixicon/remixicon.dart';

import '/common/get.dart';
import '/common/style.dart';
import '/custom/expansiontile.dart' as CustomExpansionTile;
import '/widget/bars.dart';
import '/widget/dialog.dart';
import '/custom/expansiontile.dart' as CustomExpansionTile;

import '../config.dart';
import '../data.dart';

Expand Down Expand Up @@ -182,7 +182,7 @@ class _CareerPageBodyState extends State<CareerPageBody> {
publicTopBar(
"我的大学生涯",
InkWell(
child: Icon(FlutterRemix.close_line, size: 24),
child: Icon(Remix.close_line, size: 24),
onTap: () {
if (type == 0) {
Navigator.of(context).pop();
Expand All @@ -207,7 +207,7 @@ class _CareerPageBodyState extends State<CareerPageBody> {
// margin: EdgeInsets.fromLTRB(16, 0, 0, 0),
// padding: EdgeInsets.fromLTRB(8, 8, 8, 8),
// child: Icon(
// FlutterRemix.checkbox_circle_line,
// Remix.checkbox_circle_line,
// size: 64,
// color: Colors.white,
// ),
Expand Down
10 changes: 5 additions & 5 deletions lib/pages/login.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import 'dart:convert';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_remix/flutter_remix.dart';
import 'package:http/http.dart';
import 'package:remixicon/remixicon.dart';

import '/common/cookie.dart';
import '/common/get.dart';
Expand Down Expand Up @@ -177,7 +177,7 @@ class LoginPageState extends State<LoginPage> {
publicTopBar(
"桂工助手N",
InkWell(
child: Icon(FlutterRemix.close_line, size: 24),
child: Icon(Remix.close_line, size: 24),
onTap: () {
Navigator.of(context).pop();
},
Expand Down Expand Up @@ -221,7 +221,7 @@ class LoginPageState extends State<LoginPage> {
controller: studentIdController,
decoration: InputDecoration(
icon: Icon(
FlutterRemix.user_3_line,
Remix.user_3_line,
color: studentIdFocusNode.hasFocus ? readColor() : null,
),
border: InputBorder.none,
Expand Down Expand Up @@ -249,7 +249,7 @@ class LoginPageState extends State<LoginPage> {
controller: passwordController,
decoration: InputDecoration(
icon: Icon(
FlutterRemix.key_line,
Remix.key_line,
color: passwordFocusNode.hasFocus ? readColor() : null,
),
border: InputBorder.none,
Expand All @@ -274,7 +274,7 @@ class LoginPageState extends State<LoginPage> {
controller: checkCodeController,
decoration: InputDecoration(
icon: Icon(
FlutterRemix.magic_line,
Remix.magic_line,
color: checkCodeFocusNode.hasFocus ? readColor() : null,
),
border: InputBorder.none,
Expand Down
20 changes: 10 additions & 10 deletions lib/pages/person.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import 'package:badges/badges.dart' as badges;
import 'package:flutter/material.dart';
import 'package:flutter_remix/flutter_remix.dart';
import 'package:remixicon/remixicon.dart';

import '/pages/career.dart';
import '/pages/queryClassRoom.dart';
import '/pages/setting.dart';
import '/pages/update.dart';
import '/widget/bars.dart';
import '/widget/icons.dart';
import 'package:badges/badges.dart' as badges;

import '../config.dart';
import '../data.dart';
import 'about.dart';
Expand Down Expand Up @@ -52,7 +52,7 @@ class MinePageState extends State<MinePage> {
);
},
child: mineItem(
FlutterRemix.user_5_line,
Remix.user_5_line,
EdgeInsets.fromLTRB(16, 14, 0, 14),
(AppData.persistentData["name"] != "" ? "更换账号" : "登录教务"),
readColor(),
Expand All @@ -67,7 +67,7 @@ class MinePageState extends State<MinePage> {
Navigator.of(context).push(MaterialPageRoute(builder: (context) => CareerPage()));
}
},
child: mineItem(FlutterRemix.timer_flash_line, EdgeInsets.fromLTRB(16, 14, 0, 14), "课程生涯", readColor()),
child: mineItem(Remix.timer_flash_line, EdgeInsets.fromLTRB(16, 14, 0, 14), "课程生涯", readColor()),
),
InkWell(
onTap: () {
Expand All @@ -78,7 +78,7 @@ class MinePageState extends State<MinePage> {
Navigator.of(context).push(MaterialPageRoute(builder: (context) => QueryRoomPage()));
}
},
child: mineItem(FlutterRemix.building_4_line, EdgeInsets.fromLTRB(16, 14, 0, 14), "教室查询", readColor()),
child: mineItem(Remix.building_4_line, EdgeInsets.fromLTRB(16, 14, 0, 14), "教室查询", readColor()),
),
topLine,
InkWell(
Expand All @@ -88,20 +88,20 @@ class MinePageState extends State<MinePage> {
Navigator.of(context).push(MaterialPageRoute(builder: (context) => UpdatePage()));
},
child: AppData.hasNewVersion
? mineItem5(FlutterRemix.download_cloud_2_line, EdgeInsets.fromLTRB(16, 14, 0, 14), "版本更新", readColor())
: mineItem(FlutterRemix.download_cloud_2_line, EdgeInsets.fromLTRB(16, 14, 0, 14), "版本更新", readColor()),
? mineItem5(Remix.download_cloud_2_line, EdgeInsets.fromLTRB(16, 14, 0, 14), "版本更新", readColor())
: mineItem(Remix.download_cloud_2_line, EdgeInsets.fromLTRB(16, 14, 0, 14), "版本更新", readColor()),
),
InkWell(
onTap: () {
Navigator.of(context).push(MaterialPageRoute(builder: (context) => InfoPage()));
},
child: mineItem(FlutterRemix.information_line, EdgeInsets.fromLTRB(16, 14, 0, 14), "说明", readColor()),
child: mineItem(Remix.information_line, EdgeInsets.fromLTRB(16, 14, 0, 14), "说明", readColor()),
),
InkWell(
onTap: () {
Navigator.of(context).push(MaterialPageRoute(builder: (context) => SettingPage(title: "设置2")));
},
child: mineItem(FlutterRemix.settings_3_line, EdgeInsets.fromLTRB(16, 14, 0, 14), "设置", readColor()),
child: mineItem(Remix.settings_3_line, EdgeInsets.fromLTRB(16, 14, 0, 14), "设置", readColor()),
),
],
),
Expand Down
10 changes: 5 additions & 5 deletions lib/pages/queryClassRoom.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_remix/flutter_remix.dart';
import 'package:remixicon/remixicon.dart';
import '/common/get.dart';
import '/data.dart';
import '/widget/bars.dart';
Expand Down Expand Up @@ -40,7 +40,7 @@ class QueryRoomPageState extends State<QueryRoomPage> {
publicTopBar(
"教室查询",
InkWell(
child: Icon(FlutterRemix.close_line, size: 24),
child: Icon(Remix.close_line, size: 24),
onTap: () {
Navigator.of(context).pop();
},
Expand Down Expand Up @@ -206,7 +206,7 @@ class QueryConditionCardState extends State<QueryConditionCard> {
height: 40,
child: DropdownButton(
enableFeedback: true,
icon: Icon(FlutterRemix.arrow_right_s_line),
icon: Icon(Remix.arrow_right_s_line),
iconSize: 16,
underline: Container(),
alignment: Alignment.centerRight,
Expand Down Expand Up @@ -247,7 +247,7 @@ class QueryConditionCardState extends State<QueryConditionCard> {
selectedItemBuilder: (context) {
return dropdownMenuItemList("weekOfSemester", true);
},
icon: Icon(FlutterRemix.arrow_right_s_line),
icon: Icon(Remix.arrow_right_s_line),
iconSize: 16,
underline: Container(),
alignment: Alignment.centerRight,
Expand Down Expand Up @@ -279,7 +279,7 @@ class QueryConditionCardState extends State<QueryConditionCard> {
selectedItemBuilder: (context) {
return dropdownMenuItemList("dayOfWeek", true);
},
icon: Icon(FlutterRemix.arrow_right_s_line),
icon: Icon(Remix.arrow_right_s_line),
iconSize: 16,
underline: Container(),
alignment: Alignment.centerRight,
Expand Down
6 changes: 3 additions & 3 deletions lib/pages/queryExam.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter_remix/flutter_remix.dart';
import 'package:remixicon/remixicon.dart';

import '/common/get.dart';
import '/config.dart';
import '/widget/bars.dart';
import '/widget/lists.dart';

import '../data.dart';
import 'career.dart';

Expand Down Expand Up @@ -114,7 +114,7 @@ class _QueryExamBodyState extends State<QueryExamBody> {
"我的考试",
InkWell(
child: Icon(
FlutterRemix.close_line,
Remix.close_line,
size: 24,
color: Colors.white,
),
Expand Down
8 changes: 4 additions & 4 deletions lib/pages/queryScore.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter_remix/flutter_remix.dart';
import 'package:glutassistantn/widget/dialog.dart';
import 'package:remixicon/remixicon.dart';

import '/common/get.dart';
import '/pages/setting.dart';
Expand Down Expand Up @@ -187,7 +187,7 @@ class _QueryBodyState extends State<QueryBody> {
"成绩查询",
InkWell(
child: Icon(
FlutterRemix.close_line,
Remix.close_line,
size: 24,
color: Colors.white,
),
Expand All @@ -214,7 +214,7 @@ class _QueryBodyState extends State<QueryBody> {
children: [
DropdownButton(
enableFeedback: true,
icon: Icon(FlutterRemix.arrow_down_s_line),
icon: Icon(Remix.arrow_down_s_line),
iconSize: 16,
iconEnabledColor: Colors.white,
elevation: 0,
Expand All @@ -240,7 +240,7 @@ class _QueryBodyState extends State<QueryBody> {
),
DropdownButton(
enableFeedback: true,
icon: Icon(FlutterRemix.arrow_down_s_line),
icon: Icon(Remix.arrow_down_s_line),
iconSize: 16,
iconEnabledColor: Colors.white,
elevation: 0,
Expand Down
5 changes: 3 additions & 2 deletions lib/pages/scheduleManager.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_remix/flutter_remix.dart';
import 'package:remixicon/remixicon.dart';

import '/widget/bars.dart';

import '../config.dart';
Expand Down Expand Up @@ -34,7 +35,7 @@ class _ScheduleManagePageState extends State<ScheduleManagePage> {
publicTopBar(
"课程管理",
InkWell(
child: Icon(FlutterRemix.close_line, size: 24),
child: Icon(Remix.close_line, size: 24),
onTap: () {
Navigator.of(context).pop();
},
Expand Down
Loading

0 comments on commit f4154cd

Please sign in to comment.