Skip to content

Commit 1e1bafb

Browse files
Merge pull request #62 from OctagonalStar/dev
build(deps): upgrade dependencies
2 parents c886dd4 + 82bce89 commit 1e1bafb

10 files changed

Lines changed: 408 additions & 297 deletions

File tree

.github/workflows/FlutterBuild.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: subosito/flutter-action@v2
1919
with:
2020
channel: stable
21-
flutter-version: '3.35.5'
21+
flutter-version: '3.41.0'
2222
- name: Decode keystore
2323
run: |
2424
echo "${{ secrets.ANDROID_KEYSTORE_BASE64 }}" | base64 --decode > android/release.jks
@@ -55,7 +55,7 @@ jobs:
5555
uses: subosito/flutter-action@v2
5656
with:
5757
channel: stable
58-
flutter-version: '3.35.5'
58+
flutter-version: '3.41.0'
5959

6060
- run: flutter pub get
6161
- run: flutter build windows
@@ -75,7 +75,7 @@ jobs:
7575
uses: subosito/flutter-action@v2
7676
with:
7777
channel: stable
78-
flutter-version: '3.35.5'
78+
flutter-version: '3.41.0'
7979

8080
- run: flutter pub get
8181
- run: flutter build macos
@@ -95,7 +95,7 @@ jobs:
9595
- uses: actions/checkout@v4
9696
- uses: subosito/flutter-action@v2
9797
with:
98-
flutter-version: '3.35.5'
98+
flutter-version: '3.41.0'
9999
- run: flutter pub get
100100
- run: flutter build web --release --base-href /arabic_learning/
101101

.github/workflows/FlutterBuildTest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: subosito/flutter-action@v2
1616
with:
1717
channel: stable
18-
flutter-version: '3.35.5'
18+
flutter-version: '3.41.0'
1919

2020
- run: flutter pub get
2121
- run: flutter build windows
@@ -32,7 +32,7 @@ jobs:
3232
- uses: actions/checkout@v4
3333
- uses: subosito/flutter-action@v2
3434
with:
35-
flutter-version: '3.35.5'
35+
flutter-version: '3.41.0'
3636
- run: flutter pub get
3737
- run: flutter build web --release
3838
- uses: actions/upload-artifact@v4

lib/funcs/noification.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Future<FlutterLocalNotificationsPlugin?> initNotificationsBackground() async {
1919

2020
// 通知接口
2121
FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin = FlutterLocalNotificationsPlugin();
22-
await flutterLocalNotificationsPlugin.initialize(initializationSettings);
22+
await flutterLocalNotificationsPlugin.initialize(settings: initializationSettings);
2323

2424
// 通知渠道
2525
const AndroidNotificationChannel channel = AndroidNotificationChannel(
@@ -66,10 +66,10 @@ Future<bool> sendNotification() async {
6666

6767
final Random rnd = Random();
6868
await localNotificationPlugin.show(
69-
rnd.nextInt(9999),
70-
'学习提醒',
71-
StaticsVar.learningMessage[rnd.nextInt(StaticsVar.learningMessage.length)],
72-
notificationDetails,
69+
id: rnd.nextInt(9999),
70+
title: '学习提醒',
71+
body: StaticsVar.learningMessage[rnd.nextInt(StaticsVar.learningMessage.length)],
72+
notificationDetails: notificationDetails,
7373
);
7474
return Future.value(true);
7575
}

lib/funcs/ui.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ class WordCardQuestion extends StatelessWidget {
844844
SizedBox(height: mediaQuery.size.height * 0.01),
845845
WordCard(word: word),
846846
Expanded(child: SizedBox()),
847-
if(bottomWidget != null) bottomWidget!,
847+
?bottomWidget,
848848
SizedBox(height: mediaQuery.size.height * 0.05),
849849
],
850850
),

0 commit comments

Comments
 (0)