Skip to content

Commit

Permalink
renamed files
Browse files Browse the repository at this point in the history
  • Loading branch information
liplum committed Sep 26, 2024
1 parent 366f4ad commit 57c3455
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions lib/school/exam_result/page/result.ug.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:collection/collection.dart';
import 'package:fit_system_screenshot/fit_system_screenshot.dart';
import 'package:flutter/material.dart';
import 'package:flutter_platform_widgets/flutter_platform_widgets.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
Expand Down Expand Up @@ -32,16 +33,24 @@ class _ExamResultUgPageState extends ConsumerState<ExamResultUgPage> {
bool fetching = false;
final $loadingProgress = ValueNotifier(0.0);
late SemesterInfo selected = initial;
final scrollAreaKey = GlobalKey();
final controller = ScrollController();
Dispose? screenShotDispose;

@override
void initState() {
super.initState();
fetch();
screenShotDispose = fitSystemScreenshot.attachToPage(
scrollAreaKey,
controller,
controller.jumpTo,
);
}

@override
void dispose() {
screenShotDispose?.call();
$loadingProgress.dispose();
controller.dispose();
super.dispose();
Expand Down Expand Up @@ -87,6 +96,7 @@ class _ExamResultUgPageState extends ConsumerState<ExamResultUgPage> {
final resultList = this.resultList?.sorted(ExamResultUg.compareByTime).reversed.toList();
return Scaffold(
body: CustomScrollView(
key: scrollAreaKey,
controller: controller,
slivers: [
SliverAppBar.medium(
Expand Down
6 changes: 3 additions & 3 deletions lib/school/index.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import 'package:mimir/feature/feature.dart';
import 'package:mimir/feature/utils.dart';
import 'package:mimir/school/class2nd/index.dart';
import 'package:mimir/school/event.dart';
import 'package:mimir/school/exam_arrange/index.dart';
import 'package:mimir/school/exam_result/index.pg.dart';
import 'package:mimir/school/exam_result/index.ug.dart';
import 'package:mimir/school/exam_arrange/card.dart';
import 'package:mimir/school/exam_result/card.pg.dart';
import 'package:mimir/school/exam_result/card.ug.dart';
import 'package:mimir/school/freshman/card.dart';
import 'package:mimir/school/library/index.dart';
import 'package:mimir/school/oa_announce/index.dart';
Expand Down

0 comments on commit 57c3455

Please sign in to comment.