修复问题

This commit is contained in:
yuanjunyao 2023-12-01 20:45:31 +08:00
parent 925673afa2
commit 9f27eda256
6 changed files with 61 additions and 24 deletions

View File

@ -63,27 +63,27 @@ android {
} }
signingConfigs { signingConfigs {
release { // release {
keyAlias signingConfigs.debug.keyAlias // keyAlias signingConfigs.debug.keyAlias
keyPassword signingConfigs.debug.keyPassword // keyPassword signingConfigs.debug.keyPassword
storeFile signingConfigs.debug.storeFile // storeFile signingConfigs.debug.storeFile
storePassword signingConfigs.debug.storePassword // storePassword signingConfigs.debug.storePassword
// ////
// keyAlias keystoreProperties['keyAlias'] //// keyAlias keystoreProperties['keyAlias']
// keyPassword keystoreProperties['keyPassword'] //// keyPassword keystoreProperties['keyPassword']
// storeFile file(keystoreProperties['storeFile']) //// storeFile file(keystoreProperties['storeFile'])
// storePassword keystoreProperties['storePassword'] //// storePassword keystoreProperties['storePassword']
} // }
} }
buildTypes { buildTypes {
debug { debug {
signingConfig signingConfigs.release signingConfig signingConfigs.debug
} }
release { release {
// TODO: Add your own signing config for the release build. // 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.release signingConfig signingConfigs.debug
shrinkResources false shrinkResources false
zipAlignEnabled false zipAlignEnabled false
minifyEnabled true minifyEnabled true

View File

@ -1,10 +1,10 @@
buildscript { buildscript {
ext.kotlin_version = '1.7.10' ext.kotlin_version = '1.7.10'
repositories { repositories {
maven { url 'https://maven.aliyun.com/repository/public' }//jcenter // maven { url 'https://maven.aliyun.com/repository/public' }//jcenter
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }//gradle-plugin // maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }//gradle-plugin
maven { url 'https://maven.aliyun.com/repository/central' }//central // maven { url 'https://maven.aliyun.com/repository/central' }//central
maven { url 'https://maven.aliyun.com/repository/google' }//google // maven { url 'https://maven.aliyun.com/repository/google' }//google
google() google()
mavenCentral() mavenCentral()
maven { url 'https://jitpack.io' } maven { url 'https://jitpack.io' }
@ -17,10 +17,10 @@ buildscript {
allprojects { allprojects {
repositories { repositories {
maven { url 'https://maven.aliyun.com/repository/public' } // maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' } // maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
maven { url 'https://maven.aliyun.com/repository/central' } // maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/google' } // maven { url 'https://maven.aliyun.com/repository/google' }
google() google()
mavenCentral() mavenCentral()
maven { url 'https://jitpack.io' } maven { url 'https://jitpack.io' }

View File

@ -579,7 +579,7 @@ class HomeController extends GetxController {
await Future.delayed(const Duration(seconds: 1)); await Future.delayed(const Duration(seconds: 1));
var knowledgePointDialogue = knowledgePointDialogues.firstWhereOrNull((t) => var knowledgePointDialogue = knowledgePointDialogues.firstWhereOrNull((t) =>
t!.kpId == selectKnowledge.value!.id && t.id == sendCount && t.isGpt!); t!.kpId == selectKnowledge.value!.id && t.id == (sendCount - 1) && t.isGpt!);
if (knowledgePointDialogue == null) { if (knowledgePointDialogue == null) {
return; return;

View File

@ -109,7 +109,7 @@ class ExploreStudyView extends GetView<HomeController> {
controller.chatInputMsg.value.substring(0, i); controller.chatInputMsg.value.substring(0, i);
await Future.delayed(const Duration(milliseconds: 80)); await Future.delayed(const Duration(milliseconds: 80));
} }
}); }, [controller.chatInputMsg.value]);
return ChatInputWidget( return ChatInputWidget(
controller: controller.textController, controller: controller.textController,
onPressed: (txt) { onPressed: (txt) {

View File

@ -0,0 +1,35 @@
import 'package:flutter/material.dart';
class SequentiallyShowUpScope extends StatelessWidget {
static SequentiallyShowUpScope of(BuildContext context) => context.findAncestorWidgetOfExactType()!;
const SequentiallyShowUpScope({
super.key,
required this.child,
});
final Widget child;
@override
Widget build(BuildContext context) {
return child;
}
}
class SequentiallyShowUp extends StatelessWidget {
const SequentiallyShowUp({
super.key,
required this.child,
required this.sequence,
});
final Widget child;
final int sequence;
@override
Widget build(BuildContext context) {
return const Placeholder();
}
}

View File

@ -1,5 +1,5 @@
import 'package:easy_refresh/easy_refresh.dart'; import 'package:easy_refresh/easy_refresh.dart';
import 'package:flustars_flutter3/flustars_flutter3.dart'; import 'package:flustars_flutter3/flustars_flutter3.dart' hide ScreenUtil;
import 'package:flutter_localizations/flutter_localizations.dart'; import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
@ -24,6 +24,8 @@ Future<void> main() async {
SystemChrome.setPreferredOrientations( SystemChrome.setPreferredOrientations(
[DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight]); [DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight]);
await ScreenUtil.ensureScreenSize();
/// sp初始化 /// sp初始化
await SpUtil.getInstance(); await SpUtil.getInstance();
setInitDir(initStorageDir: true); setInitDir(initStorageDir: true);