提交 e62fb57e authored 作者: Kevin's avatar Kevin

升级版本0.3.1

上级 5766382a
## [0.3.1]
* TODO: 修复了键盘监听高度未释放的问题
## [0.3.0] ## [0.3.0]
* TODO: 优化了键盘的使用方式 * TODO: 优化了键盘的使用方式
......
...@@ -353,6 +353,7 @@ class KeyboardPageState extends State<KeyboardPage> ...@@ -353,6 +353,7 @@ class KeyboardPageState extends State<KeyboardPage>
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Positioned( return Positioned(
child: IntrinsicHeight(child: Builder( child: IntrinsicHeight(child: Builder(
builder: (ctx) { builder: (ctx) {
...@@ -360,7 +361,10 @@ class KeyboardPageState extends State<KeyboardPage> ...@@ -360,7 +361,10 @@ class KeyboardPageState extends State<KeyboardPage>
if (result != null) { if (result != null) {
_lastBuildWidget = result; _lastBuildWidget = result;
} }
return _lastBuildWidget; return ConstrainedBox(
constraints: BoxConstraints(minHeight: 0,minWidth: 0,maxHeight: widget.height, maxWidth: _ScreenUtil.getScreenW(context)),
child: _lastBuildWidget,
);
}, },
)), )),
bottom: (widget.height - doubleAnimation.value) * -1); bottom: (widget.height - doubleAnimation.value) * -1);
...@@ -381,6 +385,8 @@ class KeyboardPageState extends State<KeyboardPage> ...@@ -381,6 +385,8 @@ class KeyboardPageState extends State<KeyboardPage>
} }
update() { update() {
this.setState(() {}); try{
setState(()=>{});
}catch(_){}
} }
} }
...@@ -36,6 +36,14 @@ class KeyboardMediaQueryState extends State<KeyboardMediaQuery >{ ...@@ -36,6 +36,14 @@ class KeyboardMediaQueryState extends State<KeyboardMediaQuery >{
} }
onUpdateHeight(){ onUpdateHeight(){
setState(()=>{}); try{
setState(()=>{});
}catch(_){}
}
@override
void dispose(){
super.dispose();
CoolKeyboard._keyboardHeightNotifier.removeListener(onUpdateHeight);
} }
} }
\ No newline at end of file
...@@ -5,35 +5,35 @@ packages: ...@@ -5,35 +5,35 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: async name: async
url: "https://pub.flutter-io.cn" url: "https://pub.dev"
source: hosted source: hosted
version: "2.3.0" version: "2.3.0"
back_button_interceptor: back_button_interceptor:
dependency: "direct main" dependency: "direct main"
description: description:
name: back_button_interceptor name: back_button_interceptor
url: "https://pub.flutter-io.cn" url: "https://pub.dev"
source: hosted source: hosted
version: "4.0.6" version: "4.2.2"
boolean_selector: boolean_selector:
dependency: transitive dependency: transitive
description: description:
name: boolean_selector name: boolean_selector
url: "https://pub.flutter-io.cn" url: "https://pub.dev"
source: hosted source: hosted
version: "1.0.5" version: "1.0.5"
charcode: charcode:
dependency: transitive dependency: transitive
description: description:
name: charcode name: charcode
url: "https://pub.flutter-io.cn" url: "https://pub.dev"
source: hosted source: hosted
version: "1.1.2" version: "1.1.2"
collection: collection:
dependency: transitive dependency: transitive
description: description:
name: collection name: collection
url: "https://pub.flutter-io.cn" url: "https://pub.dev"
source: hosted source: hosted
version: "1.14.11" version: "1.14.11"
flutter: flutter:
...@@ -50,35 +50,35 @@ packages: ...@@ -50,35 +50,35 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: matcher name: matcher
url: "https://pub.flutter-io.cn" url: "https://pub.dev"
source: hosted source: hosted
version: "0.12.5" version: "0.12.5"
meta: meta:
dependency: transitive dependency: transitive
description: description:
name: meta name: meta
url: "https://pub.flutter-io.cn" url: "https://pub.dev"
source: hosted source: hosted
version: "1.1.7" version: "1.1.7"
path: path:
dependency: transitive dependency: transitive
description: description:
name: path name: path
url: "https://pub.flutter-io.cn" url: "https://pub.dev"
source: hosted source: hosted
version: "1.6.4" version: "1.6.4"
pedantic: pedantic:
dependency: transitive dependency: transitive
description: description:
name: pedantic name: pedantic
url: "https://pub.flutter-io.cn" url: "https://pub.dev"
source: hosted source: hosted
version: "1.8.0+1" version: "1.8.0+1"
quiver: quiver:
dependency: transitive dependency: transitive
description: description:
name: quiver name: quiver
url: "https://pub.flutter-io.cn" url: "https://pub.dev"
source: hosted source: hosted
version: "2.0.5" version: "2.0.5"
sky_engine: sky_engine:
...@@ -90,56 +90,56 @@ packages: ...@@ -90,56 +90,56 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: source_span name: source_span
url: "https://pub.flutter-io.cn" url: "https://pub.dev"
source: hosted source: hosted
version: "1.5.5" version: "1.5.5"
stack_trace: stack_trace:
dependency: transitive dependency: transitive
description: description:
name: stack_trace name: stack_trace
url: "https://pub.flutter-io.cn" url: "https://pub.dev"
source: hosted source: hosted
version: "1.9.3" version: "1.9.3"
stream_channel: stream_channel:
dependency: transitive dependency: transitive
description: description:
name: stream_channel name: stream_channel
url: "https://pub.flutter-io.cn" url: "https://pub.dev"
source: hosted source: hosted
version: "2.0.0" version: "2.0.0"
string_scanner: string_scanner:
dependency: transitive dependency: transitive
description: description:
name: string_scanner name: string_scanner
url: "https://pub.flutter-io.cn" url: "https://pub.dev"
source: hosted source: hosted
version: "1.0.5" version: "1.0.5"
term_glyph: term_glyph:
dependency: transitive dependency: transitive
description: description:
name: term_glyph name: term_glyph
url: "https://pub.flutter-io.cn" url: "https://pub.dev"
source: hosted source: hosted
version: "1.1.0" version: "1.1.0"
test_api: test_api:
dependency: transitive dependency: transitive
description: description:
name: test_api name: test_api
url: "https://pub.flutter-io.cn" url: "https://pub.dev"
source: hosted source: hosted
version: "0.2.5" version: "0.2.5"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
name: typed_data name: typed_data
url: "https://pub.flutter-io.cn" url: "https://pub.dev"
source: hosted source: hosted
version: "1.1.6" version: "1.1.6"
vector_math: vector_math:
dependency: transitive dependency: transitive
description: description:
name: vector_math name: vector_math
url: "https://pub.flutter-io.cn" url: "https://pub.dev"
source: hosted source: hosted
version: "2.0.8" version: "2.0.8"
sdks: sdks:
......
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.3.0 version: 0.3.1
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
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论