Skip to content

Commit 9e90f83

Browse files
committed
upgrade to Flutter 3.10 and Gradle 7+
1 parent 646536f commit 9e90f83

File tree

17 files changed

+519
-488
lines changed

17 files changed

+519
-488
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Shorey
66
<br>
77
</h1>
8-
Shorey是一款笔记应用, 支持Android/iOS双平台, 使用Flutter <strike>3</strike> 3开发, 体验Flutter的同时也希望做一个能成为个人知识中转站的应用, 让你更方便的把平时收集到的信息记录下来, 最后沉淀到知识库中.
8+
Shorey是一款笔记应用, 支持Android/iOS双平台, 使用Flutter <strike>2</strike> 3开发, 体验Flutter的同时也希望做一个能成为个人知识中转站的应用, 让你更方便的把平时收集到的信息记录下来, 最后沉淀到知识库中.
99

1010
后边会先开发联动Notion, 让你的Notion成为后台知识库.
1111

android/app/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ android {
3232
main.java.srcDirs += 'src/main/kotlin'
3333
}
3434

35-
lintOptions {
36-
disable 'InvalidPackage'
37-
}
3835

3936
defaultConfig {
4037
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
@@ -64,6 +61,10 @@ android {
6461
signingConfig signingConfigs.debug
6562
}
6663
}
64+
namespace 'com.elementlo.shorey'
65+
lint {
66+
disable 'InvalidPackage'
67+
}
6768
}
6869

6970
flutter {

android/app/src/debug/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.elementlo.shorey">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- Flutter needs it to communicate with the running application
43
to allow setting breakpoints, to provide hot reload, etc.
54
-->

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.elementlo.shorey">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
43
calls FlutterMain.startInitialization(this); in its onCreate method.
54
In most cases you can leave this as-is, but you if you want to provide

android/app/src/profile/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.elementlo.shorey">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- Flutter needs it to communicate with the running application
43
to allow setting breakpoints, to provide hot reload, etc.
54
-->

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
}
88

99
dependencies {
10-
classpath 'com.android.tools.build:gradle:4.2.2'
10+
classpath 'com.android.tools.build:gradle:7.1.2'
1111
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1212
}
1313
}
@@ -28,6 +28,6 @@ subprojects {
2828
project.evaluationDependsOn(':app')
2929
}
3030

31-
task clean(type: Delete) {
31+
tasks.register("clean", Delete) {
3232
delete rootProject.buildDir
3333
}

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip

lib/base/view_state_widget.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ class ViewStateUnAuthImage extends StatelessWidget {
145145
width: 130,
146146
height: 100,
147147
fit: BoxFit.fitWidth,
148-
color: Theme.of(context).accentColor,
149148
colorBlendMode: BlendMode.srcIn,
150149
),
151150
);

lib/config/theme_data.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,14 @@ class AppThemeData {
2525
primaryColor: const Color(0xFFF7F8FA),
2626
textTheme: _textTheme,
2727
appBarTheme: AppBarTheme(
28-
textTheme: _textTheme.apply(bodyColor: colorScheme.onPrimary),
2928
color: colorScheme.background,
3029
elevation: 0,
3130
iconTheme: IconThemeData(color: colorScheme.primary),
32-
brightness: colorScheme.brightness,
3331
),
3432
iconTheme: IconThemeData(color: colorScheme.onPrimary),
3533
canvasColor: colorScheme.background,
3634
scaffoldBackgroundColor: Color(0xFFF5F5F5),
3735
highlightColor: Colors.transparent,
38-
accentColor: colorScheme.primary,
3936
focusColor: focusColor,
4037
snackBarTheme: SnackBarThemeData(
4138
behavior: SnackBarBehavior.floating,
@@ -51,7 +48,7 @@ class AppThemeData {
5148
static const ColorScheme lightColorScheme = ColorScheme(
5249
primary: Color(0xe26d5c),
5350
primaryVariant: Color(0xFF117378),
54-
secondary: Color(0xFFEFF3F3),
51+
secondary: Color(0xFFe26d5c),
5552
secondaryVariant: Color(0xFFFAFBFB),
5653
background: Color(0xFFE6EBEB),
5754
surface: Color(0xFFFAFBFB),

0 commit comments

Comments
 (0)