mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
release 1.0
This commit is contained in:
@@ -42,17 +42,18 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
|
||||||
applicationId "work.master.qinglongapp"
|
applicationId "work.master.qinglongapp"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion flutter.targetSdkVersion
|
targetSdkVersion flutter.targetSdkVersion
|
||||||
versionCode flutterVersionCode.toInteger()
|
versionCode flutterVersionCode.toInteger()
|
||||||
versionName flutterVersionName
|
versionName flutterVersionName
|
||||||
|
ndk {
|
||||||
|
abiFilters 'armeabi-v7a'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
// TODO: Add your own signing config for the release build.
|
|
||||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||||
signingConfig signingConfigs.debug
|
signingConfig signingConfigs.debug
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,7 +95,9 @@ class _DependcyPageState extends State<DependencyPage> with TickerProviderStateM
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: BaseStateWidget<DependencyViewModel>(
|
child: BaseStateWidget<DependencyViewModel>(
|
||||||
onReady: (model) {
|
onReady: (model) {
|
||||||
model.loadData(types[_tabController!.index].name.toLowerCase());
|
model.loadData(types[0].name.toLowerCase());
|
||||||
|
model.loadData(types[1].name.toLowerCase());
|
||||||
|
model.loadData(types[2].name.toLowerCase());
|
||||||
},
|
},
|
||||||
model: dependencyProvider,
|
model: dependencyProvider,
|
||||||
builder: (context, model, child) {
|
builder: (context, model, child) {
|
||||||
|
|||||||
@@ -233,8 +233,27 @@ class _OtherPageState extends ConsumerState<OtherPage> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
getIt<UserInfoViewModel>().updateToken("");
|
showCupertinoDialog(
|
||||||
Navigator.of(context).pushReplacementNamed(Routes.routeLogin);
|
context: context,
|
||||||
|
builder: (context) => CupertinoAlertDialog(
|
||||||
|
title: const Text("确定退出登录吗?"),
|
||||||
|
actions: [
|
||||||
|
CupertinoDialogAction(
|
||||||
|
child: const Text("取消"),
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.of(context).pop();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
CupertinoDialogAction(
|
||||||
|
child: const Text("确定"),
|
||||||
|
onPressed: () {
|
||||||
|
getIt<UserInfoViewModel>().updateToken("");
|
||||||
|
Navigator.of(context).pushReplacementNamed(Routes.routeLogin);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user