Skip to content

Commit

Permalink
[fea]更新校历
Browse files Browse the repository at this point in the history
  • Loading branch information
hxphieno committed Aug 14, 2024
1 parent 3fa2145 commit 8957939
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
Binary file removed assets/images/calender/first.jpg
Binary file not shown.
Binary file added assets/images/calender/first.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/calender/second.jpg
Binary file not shown.
Binary file added assets/images/calender/second.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions lib/home/view/map_calendar_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ class MapAndCalenderState extends State<MapAndCalender> {
context,
FeedbackRouter.localImageView,
arguments: LocalImageViewPageArgs([], [
'assets/images/calender/first.jpg',
'assets/images/calender/second.jpg'
'assets/images/calender/first.png',
'assets/images/calender/second.png'
], 2, 0),
);
},
Expand All @@ -212,14 +212,14 @@ class MapAndCalenderState extends State<MapAndCalender> {
WpyColorKey.primaryLightestActionColor),
BlendMode.screen),
image: AssetImage(
'assets/images/calender/first.jpg')))),
'assets/images/calender/first.png')))),
Positioned(
top: 20.h,
left: 14.h,
child: Opacity(
opacity: 0.34,
child: Text(
'23-24第一学期',
'24-25第一学期',
style: TextUtil.base.PingFangSC
.infoText(context)
.w900
Expand All @@ -236,8 +236,8 @@ class MapAndCalenderState extends State<MapAndCalender> {
context,
FeedbackRouter.localImageView,
arguments: LocalImageViewPageArgs([], [
'assets/images/calender/first.jpg',
'assets/images/calender/second.jpg'
'assets/images/calender/first.png',
'assets/images/calender/second.png'
], 2, 1),
);
},
Expand All @@ -255,15 +255,15 @@ class MapAndCalenderState extends State<MapAndCalender> {
WpyTheme.of(context)
.get(WpyColorKey.primaryLightestActionColor),
BlendMode.screen),
image: AssetImage('assets/images/calender/second.jpg'),
image: AssetImage('assets/images/calender/second.png'),
))),
Positioned(
top: 20.h,
left: 14.h,
child: Opacity(
opacity: 0.34,
child: Text(
'23-24第二学期',
'24-25第二学期',
style: TextUtil.base.PingFangSC
.infoText(context)
.w900
Expand Down
11 changes: 10 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,16 @@ class WePeiYangAppState extends State<WePeiYangApp>
FlutterSmartDialog.observer
],
home: child,
builder: FlutterSmartDialog.init(builder: _builder),
builder: (context, child) => Overlay(
initialEntries: [
if (child != null) ...[
OverlayEntry(
builder: (context) => child,
),
],
],
),
// builder: FlutterSmartDialog.init(builder: _builder),
// builder: FToastBuilder(),
);
})),
Expand Down

0 comments on commit 8957939

Please sign in to comment.