修复问题

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 {
release {
keyAlias signingConfigs.debug.keyAlias
keyPassword signingConfigs.debug.keyPassword
storeFile signingConfigs.debug.storeFile
storePassword signingConfigs.debug.storePassword
//
// keyAlias keystoreProperties['keyAlias']
// keyPassword keystoreProperties['keyPassword']
// storeFile file(keystoreProperties['storeFile'])
// storePassword keystoreProperties['storePassword']
}
// release {
// keyAlias signingConfigs.debug.keyAlias
// keyPassword signingConfigs.debug.keyPassword
// storeFile signingConfigs.debug.storeFile
// storePassword signingConfigs.debug.storePassword
////
//// keyAlias keystoreProperties['keyAlias']
//// keyPassword keystoreProperties['keyPassword']
//// storeFile file(keystoreProperties['storeFile'])
//// storePassword keystoreProperties['storePassword']
// }
}
buildTypes {
debug {
signingConfig signingConfigs.release
signingConfig signingConfigs.debug
}
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.release
signingConfig signingConfigs.debug
shrinkResources false
zipAlignEnabled false
minifyEnabled true

View File

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

View File

@ -579,7 +579,7 @@ class HomeController extends GetxController {
await Future.delayed(const Duration(seconds: 1));
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) {
return;

View File

@ -109,7 +109,7 @@ class ExploreStudyView extends GetView<HomeController> {
controller.chatInputMsg.value.substring(0, i);
await Future.delayed(const Duration(milliseconds: 80));
}
});
}, [controller.chatInputMsg.value]);
return ChatInputWidget(
controller: controller.textController,
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:flustars_flutter3/flustars_flutter3.dart';
import 'package:flustars_flutter3/flustars_flutter3.dart' hide ScreenUtil;
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
@ -24,6 +24,8 @@ Future<void> main() async {
SystemChrome.setPreferredOrientations(
[DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight]);
await ScreenUtil.ensureScreenSize();
/// sp初始化
await SpUtil.getInstance();
setInitDir(initStorageDir: true);