提交 94fbf371 authored 作者: Kevin's avatar Kevin

CupertinoPopoverDirection添加了left和right

上级 ecd2f383
## [0.6.1]
* TODO: CupertinoPopoverDirection添加了left和right
## [0.6.0]
* TODO: 重构了键盘弹出的方式,修复长按输入框报错问题
......
......@@ -9,7 +9,7 @@ Usage Add this to your package's pubspec.yaml file:
Flutter >=1.17
``` yaml
dependencies:
cool_ui: "^0.6.0"
cool_ui: "^0.6.1"
```
Flutter >=1.7
......
......@@ -2,6 +2,7 @@ import 'package:cool_ui_example/cool_u_i_example_icons.dart';
import 'package:cool_ui_example/pages/custom_keyboard.dart';
import 'package:cool_ui_example/pages/paint_event_demo.dart';
import 'package:cool_ui_example/pages/popover_demo.dart';
import 'package:cool_ui_example/pages/table_demo.dart';
import 'package:cool_ui_example/pages/weui_toast_demo.dart';
import 'package:cool_ui/cool_ui.dart';
import 'package:flutter/material.dart';
......@@ -113,6 +114,13 @@ class _MyHomePageState extends State<MyHomePage> {
Navigator.of(context).push(MaterialPageRoute(
builder: (context) => CustomKeyboardDemo()));
},
),
ListTile(
title: Text("TableEvent"),
onTap: () {
Navigator.of(context).push(MaterialPageRoute(
builder: (context) => TableDemo()));
},
)
],
));
......
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:cool_ui/cool_ui.dart';
class TableDemo extends StatefulWidget{
@override
State<StatefulWidget> createState() {
// TODO: implement createState
return TableDemoState();
}
}
class TableDemoState extends State<TableDemo>{
@override
Widget build(BuildContext context) {
// TODO: implement build
return Scaffold(
appBar: AppBar(
title: Text("Table Demo"),
),
body: CoolTable()
);
}
}
\ No newline at end of file
......@@ -12,6 +12,7 @@ import 'package:flutter/rendering.dart';
part 'utils/widget_util.dart';
part 'utils/screen_util.dart';
part 'utils/scroll_utils.dart';
part 'icons/cool_ui_icons.dart';
......@@ -26,4 +27,7 @@ part 'keyboards/keyboard_manager.dart';
part 'keyboards/number_keyboard.dart';
part 'keyboards/keyboard_controller.dart';
part 'keyboards/keyboard_media_query.dart';
part 'keyboards/keyboard_root.dart';
\ No newline at end of file
part 'keyboards/keyboard_root.dart';
part 'widgets/tables/table.dart';
\ No newline at end of file
part of cool_ui;
connectScroll(ScrollController scroll1, ScrollController scroll2){
scroll1.addListener(() {
if(scroll2.offset != scroll1.offset){
scroll2.jumpTo(scroll1.offset);
}
});
scroll2.addListener(() {
if(scroll1.offset != scroll2.offset){
scroll1.jumpTo(scroll2.offset);
}
});
}
import 'package:flutter/material.dart';
part of cool_ui;
class CoolTable extends StatefulWidget{
@override
State<StatefulWidget> createState() {
// TODO: implement createState
return null;
return CoolTableState();
}
}
class CoolTableState extends State<CoolTable>{
ScrollController hTitle = ScrollController();
ScrollController hBody = ScrollController();
@override
void initState() {
// TODO: implement initState
super.initState();
connectScroll(hTitle, hBody);
}
@override
Widget build(BuildContext context) {
// TODO: implement build
return null;
return Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
SizedBox(
height: 50,
child: ListView(
scrollDirection: Axis.horizontal,
shrinkWrap: true,
physics: BouncingScrollPhysics(),
controller: hTitle,
children: <Widget>[
Text('1111111111111111111111111111111111111111111111111111111111111111111111111111')
],
),
width: 375,),
SizedBox(
height: 50,
child: ListView(
physics: BouncingScrollPhysics(),
scrollDirection: Axis.horizontal,
controller: hBody,
shrinkWrap: true,
children: <Widget>[
Text('1111111111111111111111111111111111111111111111111111111111111111111111111111')
],
)),
],
);
}
}
class CoolColumnInfo{
final double flex;
final double width;
final double minWidth;
final double maxWidth;
final Widget title;
const CoolColumnInfo({this.flex, this.width, this.minWidth, this.maxWidth});
const CoolColumnInfo({this.flex, this.width, this.title});
}
\ No newline at end of file
name: cool_ui
description: Some practical Widget for flutter,Popover,Weui,Custom Keyboard
version: 0.6.0
version: 0.6.1
author: Kevin <liangkaikevin@gmail.com>
homepage: https://github.com/Im-Kevin/cool_ui
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论