adapt as numberic button

update example
master
张萌 3 years ago
parent 777531cc3e
commit 8f2a0d9a90

@ -1,3 +1,4 @@
{ {
"flutterSdkVersion": "stable" "flutterSdkVersion": "2.0.2",
"flavors": {}
} }

@ -1,3 +1,3 @@
{ {
"dart.flutterSdkPath": "/Users/akufe/fvm/versions/stable" "dart.flutterSdkPath": "/Users/zhangmeng/fvm/versions/2.0.2"
} }

@ -36,7 +36,7 @@ class _ExamplePickerState extends State<ExamplePicker> {
// BEGIN picker // BEGIN picker
ListTile( ListTile(
title: Text('日期选择器'), title: Text('日期选择器'),
subtitle: Text('DatePicker'), subtitle: Text('DatePicker/asDatePicker'),
trailing: ASButton( trailing: ASButton(
title: '日期选择器', title: '日期选择器',
onPressed: () async { onPressed: () async {
@ -47,7 +47,7 @@ class _ExamplePickerState extends State<ExamplePicker> {
), ),
ListTile( ListTile(
title: Text('自定义选择器'), title: Text('自定义选择器'),
subtitle: Text('CustomPicker'), subtitle: Text('CustomPicker/ASPickerBox'),
trailing: ASButton( trailing: ASButton(
title: '自定义选择器', title: '自定义选择器',
onPressed: () async { onPressed: () async {
@ -60,7 +60,7 @@ class _ExamplePickerState extends State<ExamplePicker> {
), ),
ListTile( ListTile(
title: Text('时间区间选择器'), title: Text('时间区间选择器'),
subtitle: Text('DateRangePicker'), subtitle: Text('DateRangePicker/show2DatePicker'),
trailing: ASButton( trailing: ASButton(
title: '时间区间选择器', title: '时间区间选择器',
onPressed: () async { onPressed: () async {
@ -71,7 +71,7 @@ class _ExamplePickerState extends State<ExamplePicker> {
), ),
ListTile( ListTile(
title: Text('图片选择器'), title: Text('图片选择器'),
subtitle: Text('ImagePicker'), subtitle: Text('ImagePicker/camView'),
trailing: ASButton( trailing: ASButton(
title: '图片选择器', title: '图片选择器',
onPressed: () async { onPressed: () async {
@ -82,7 +82,7 @@ class _ExamplePickerState extends State<ExamplePicker> {
), ),
ListTile( ListTile(
title: Text('图片选择器'), title: Text('图片选择器'),
subtitle: Text('ImagePicker'), subtitle: Text('ImagePicker/pickImageFile'),
trailing: ASButton( trailing: ASButton(
title: '图片选择器', title: '图片选择器',
onPressed: () async { onPressed: () async {

@ -17,10 +17,13 @@ class _ExampleTextFiledState extends State<ExampleTextFiled> {
backgroundColor: kForegroundColor, backgroundColor: kForegroundColor,
body: ListView( body: ListView(
children: [ children: [
'ASSearchTextField'.text.size(18.sp).make(),
ASSearchTextField( ASSearchTextField(
controller: _controller, controller: _controller,
hintText: '搜索', hintText: '搜索',
), ),
40.w.heightBox,
'ASSearchTextField.button'.text.size(18.sp).black.make(),
ASSearchTextField.button( ASSearchTextField.button(
hintText: '搜索', hintText: '搜索',
onPressed: () {}, onPressed: () {},

@ -7,7 +7,7 @@ packages:
path: "." path: "."
ref: HEAD ref: HEAD
resolved-ref: d724abf91595f58ed58f6c722ebe60acdb750c67 resolved-ref: d724abf91595f58ed58f6c722ebe60acdb750c67
url: "http://159.75.73.143:8080/laiiihz/animated_collection.git" url: "https://git.oa00.com/flutter_pub/animated_collection.git"
source: git source: git
version: "0.0.1" version: "0.0.1"
animator: animator:

@ -148,6 +148,7 @@ class _ASNumericButtonState extends State<ASNumericButton> {
textAlign: TextAlign.center, textAlign: TextAlign.center,
decoration: InputDecoration( decoration: InputDecoration(
border: InputBorder.none, border: InputBorder.none,
contentPadding: EdgeInsets.zero,
isDense: true, isDense: true,
suffixText: widget.suffix, suffixText: widget.suffix,
suffixStyle: TextStyle( suffixStyle: TextStyle(

@ -7,7 +7,7 @@ packages:
path: "." path: "."
ref: HEAD ref: HEAD
resolved-ref: d724abf91595f58ed58f6c722ebe60acdb750c67 resolved-ref: d724abf91595f58ed58f6c722ebe60acdb750c67
url: "http://159.75.73.143:8080/laiiihz/animated_collection.git" url: "https://git.oa00.com/flutter_pub/animated_collection.git"
source: git source: git
version: "0.0.1" version: "0.0.1"
animator: animator:
@ -16,7 +16,7 @@ packages:
name: animator name: animator
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "3.0.0" version: "3.1.0"
async: async:
dependency: transitive dependency: transitive
description: description:
@ -73,6 +73,13 @@ packages:
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.15.0" version: "1.15.0"
cross_file:
dependency: transitive
description:
name: cross_file
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.3.1+4"
expandable: expandable:
dependency: "direct main" dependency: "direct main"
description: description:
@ -105,14 +112,14 @@ packages:
name: flutter_plugin_android_lifecycle name: flutter_plugin_android_lifecycle
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "2.0.1" version: "2.0.2"
flutter_screenutil: flutter_screenutil:
dependency: "direct main" dependency: "direct main"
description: description:
name: flutter_screenutil name: flutter_screenutil
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "5.0.0" version: "5.0.0+2"
flutter_test: flutter_test:
dependency: "direct dev" dependency: "direct dev"
description: flutter description: flutter
@ -136,7 +143,7 @@ packages:
name: http name: http
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "0.13.1" version: "0.13.3"
http_parser: http_parser:
dependency: transitive dependency: transitive
description: description:
@ -150,21 +157,21 @@ packages:
name: image_picker name: image_picker
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "0.7.4" version: "0.7.5+4"
image_picker_for_web: image_picker_for_web:
dependency: transitive dependency: transitive
description: description:
name: image_picker_for_web name: image_picker_for_web
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "2.0.0" version: "2.1.0"
image_picker_platform_interface: image_picker_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: image_picker_platform_interface name: image_picker_platform_interface
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "2.0.1" version: "2.2.0"
intl: intl:
dependency: transitive dependency: transitive
description: description:
@ -185,7 +192,7 @@ packages:
name: lpinyin name: lpinyin
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "2.0.1" version: "2.0.3"
matcher: matcher:
dependency: transitive dependency: transitive
description: description:
@ -213,14 +220,14 @@ packages:
name: pedantic name: pedantic
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.11.0" version: "1.11.1"
plugin_platform_interface: plugin_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: plugin_platform_interface name: plugin_platform_interface
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "2.0.0" version: "2.0.1"
sky_engine: sky_engine:
dependency: transitive dependency: transitive
description: flutter description: flutter
@ -246,7 +253,7 @@ packages:
name: states_rebuilder name: states_rebuilder
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "4.0.0+1" version: "4.3.0"
stream_channel: stream_channel:
dependency: transitive dependency: transitive
description: description:
@ -302,7 +309,7 @@ packages:
name: vxstate name: vxstate
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "2.0.1" version: "2.1.0"
sdks: sdks:
dart: ">=2.12.0 <3.0.0" dart: ">=2.12.0 <3.0.0"
flutter: ">=2.0.0" flutter: ">=2.0.0"

@ -2,6 +2,7 @@ name: ansu_ui
description: A new Flutter package. description: A new Flutter package.
version: 0.0.4 version: 0.0.4
author: author:
publish_to: none
environment: environment:
sdk: ">=2.12.0 <3.0.0" sdk: ">=2.12.0 <3.0.0"
@ -19,7 +20,7 @@ dependencies:
expandable: ^5.0.1 expandable: ^5.0.1
animated_collection: animated_collection:
git: git:
url: http://159.75.73.143:8080/laiiihz/animated_collection.git url: https://git.oa00.com/flutter_pub/animated_collection.git
get: ^4.1.3 get: ^4.1.3
dev_dependencies: dev_dependencies:

Loading…
Cancel
Save