提交 98958cc4 authored 作者: Kevin's avatar Kevin

升级版本0.5.0

修复Flutter1.17版本后无法在打开第二个自定义键盘不显示的问题
上级 9382a98d
## [0.5.0]
* TODO: 修复Flutter1.17版本后无法在打开第二个自定义键盘不显示的问题
## [0.4.1] ## [0.4.1]
* TODO: 修复了键盘高度从小变大的时候无法改变的问题, issues: 36 * TODO: 修复了键盘高度从小变大的时候无法改变的问题, issues: 36
* TODO: 键盘添加了传参功能,可从外部传参到键盘内部 * TODO: 键盘添加了传参功能,可从外部传参到键盘内部
......
...@@ -26,7 +26,7 @@ apply plugin: 'kotlin-android' ...@@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android { android {
compileSdkVersion 27 compileSdkVersion 28
sourceSets { sourceSets {
main.java.srcDirs += 'src/main/kotlin' main.java.srcDirs += 'src/main/kotlin'
...@@ -40,7 +40,7 @@ android { ...@@ -40,7 +40,7 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "info.geteasy.cooluiexample" applicationId "info.geteasy.cooluiexample"
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 27 targetSdkVersion 28
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
versionName flutterVersionName versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
......
org.gradle.jvmargs=-Xmx1536M org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
#!/bin/sh #!/bin/sh
# This is a generated file; do not edit or check into version control. # This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=G:\flutter" export "FLUTTER_ROOT=F:\flutter"
export "FLUTTER_APPLICATION_PATH=G:\TestCode\cool_ui\cool_ui\example" export "FLUTTER_APPLICATION_PATH=F:\TestCode\cool_ui\cool_ui\example"
export "FLUTTER_TARGET=lib\main.dart" export "FLUTTER_TARGET=lib\main.dart"
export "FLUTTER_BUILD_DIR=build" export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build\ios" export "SYMROOT=${SOURCE_ROOT}/../build\ios"
export "FLUTTER_FRAMEWORK_DIR=G:\flutter\bin\cache\artifacts\engine\ios" export "OTHER_LDFLAGS=$(inherited) -framework Flutter"
export "FLUTTER_FRAMEWORK_DIR=F:\flutter\bin\cache\artifacts\engine\ios"
export "FLUTTER_BUILD_NAME=1.0.0" export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1" export "FLUTTER_BUILD_NUMBER=1"
...@@ -27,7 +27,7 @@ class CoolKeyboard { ...@@ -27,7 +27,7 @@ class CoolKeyboard {
static interceptorInput() { static interceptorInput() {
if (isInterceptor) return; if (isInterceptor) return;
isInterceptor = true; isInterceptor = true;
defaultBinaryMessenger.setMockMessageHandler("flutter/textinput", ServicesBinding.instance.defaultBinaryMessenger.setMockMessageHandler("flutter/textinput",
(ByteData data) async { (ByteData data) async {
var methodCall = _codec.decodeMethodCall(data); var methodCall = _codec.decodeMethodCall(data);
switch (methodCall.method) { switch (methodCall.method) {
...@@ -172,11 +172,12 @@ class CoolKeyboard { ...@@ -172,11 +172,12 @@ class CoolKeyboard {
// } // }
// }); // });
if (animation) { if (animation) {
_keyboardEntry = null;
final keyboardEntry = _keyboardEntry;
_pageKey.currentState.exitKeyboard(); _pageKey.currentState.exitKeyboard();
Future.delayed(Duration(milliseconds: 116)).then((_) { Future.delayed(Duration(milliseconds: 116)).then((_) {
if (_keyboardEntry != null) { if (keyboardEntry != null) {
_keyboardEntry.remove(); keyboardEntry.remove();
_keyboardEntry = null;
} }
}); });
} else { } else {
......
import 'package:flutter/material.dart';
class CoolTable extends StatefulWidget{
@override
State<StatefulWidget> createState() {
// TODO: implement createState
return null;
}
}
class CoolTableState extends State<CoolTable>{
@override
Widget build(BuildContext context) {
// TODO: implement build
return null;
}
}
class CoolColumnInfo{
final double flex;
final double width;
final double minWidth;
final double maxWidth;
const CoolColumnInfo({this.flex, this.width, this.minWidth, this.maxWidth});
}
\ No newline at end of file
# Generated by pub # Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile # See https://dart.dev/tools/pub/glossary#lockfile
packages: packages:
archive:
dependency: transitive
description:
name: archive
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.0.13"
args:
dependency: transitive
description:
name: args
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.6.0"
async: async:
dependency: transitive dependency: transitive
description: description:
name: async name: async
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "2.3.0" version: "2.4.1"
back_button_interceptor: back_button_interceptor:
dependency: "direct main" dependency: "direct main"
description: description:
...@@ -21,21 +35,35 @@ packages: ...@@ -21,21 +35,35 @@ packages:
name: boolean_selector name: boolean_selector
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.0.5" version: "2.0.0"
charcode: charcode:
dependency: transitive dependency: transitive
description: description:
name: charcode name: charcode
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.1.2" version: "1.1.3"
collection: collection:
dependency: transitive dependency: transitive
description: description:
name: collection name: collection
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.14.11" version: "1.14.12"
convert:
dependency: transitive
description:
name: convert
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.1"
crypto:
dependency: transitive
description:
name: crypto
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.4"
flutter: flutter:
dependency: "direct main" dependency: "direct main"
description: flutter description: flutter
...@@ -46,20 +74,27 @@ packages: ...@@ -46,20 +74,27 @@ packages:
description: flutter description: flutter
source: sdk source: sdk
version: "0.0.0" version: "0.0.0"
image:
dependency: transitive
description:
name: image
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.12"
matcher: matcher:
dependency: transitive dependency: transitive
description: description:
name: matcher name: matcher
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "0.12.5" version: "0.12.6"
meta: meta:
dependency: transitive dependency: transitive
description: description:
name: meta name: meta
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.1.7" version: "1.1.8"
path: path:
dependency: transitive dependency: transitive
description: description:
...@@ -67,20 +102,20 @@ packages: ...@@ -67,20 +102,20 @@ packages:
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.6.4" version: "1.6.4"
pedantic: petitparser:
dependency: transitive dependency: transitive
description: description:
name: pedantic name: petitparser
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.8.0+1" version: "2.4.0"
quiver: quiver:
dependency: transitive dependency: transitive
description: description:
name: quiver name: quiver
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "2.0.5" version: "2.1.3"
sky_engine: sky_engine:
dependency: transitive dependency: transitive
description: flutter description: flutter
...@@ -92,7 +127,7 @@ packages: ...@@ -92,7 +127,7 @@ packages:
name: source_span name: source_span
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.5.5" version: "1.7.0"
stack_trace: stack_trace:
dependency: transitive dependency: transitive
description: description:
...@@ -127,7 +162,7 @@ packages: ...@@ -127,7 +162,7 @@ packages:
name: test_api name: test_api
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "0.2.5" version: "0.2.15"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
...@@ -142,6 +177,13 @@ packages: ...@@ -142,6 +177,13 @@ packages:
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "2.0.8" version: "2.0.8"
xml:
dependency: transitive
description:
name: xml
url: "https://pub.flutter-io.cn"
source: hosted
version: "3.6.1"
sdks: sdks:
dart: ">=2.2.2 <3.0.0" dart: ">=2.6.0 <3.0.0"
flutter: ">=1.7.0 <2.0.0" flutter: ">=1.17.0 <2.0.0"
name: cool_ui name: cool_ui
description: Some practical Widget for flutter,Popover,Weui,Custom Keyboard description: Some practical Widget for flutter,Popover,Weui,Custom Keyboard
version: 0.4.1 version: 0.5.0
author: Kevin <liangkaikevin@gmail.com> author: Kevin <liangkaikevin@gmail.com>
homepage: https://github.com/Im-Kevin/cool_ui homepage: https://github.com/Im-Kevin/cool_ui
environment: environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0" sdk: ">=2.0.0-dev.68.0 <3.0.0"
flutter: ">=1.7.0 <2.0.0" flutter: ">=1.17.0 <2.0.0"
dependencies: dependencies:
back_button_interceptor: ^4.0.6 back_button_interceptor: ^4.0.6
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论