You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
809 B
33 lines
809 B
4 years ago
|
import 'package:ansu_ui/ansu_ui.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
class ExampleTextFiled extends StatefulWidget {
|
||
|
ExampleTextFiled({Key key}) : super(key: key);
|
||
|
|
||
|
@override
|
||
|
_ExampleTextFiledState createState() => _ExampleTextFiledState();
|
||
|
}
|
||
|
|
||
|
class _ExampleTextFiledState extends State<ExampleTextFiled> {
|
||
|
TextEditingController _controller;
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return ASScaffold(
|
||
|
title: '文本框 TextFiled',
|
||
4 years ago
|
backgroundColor: kForegroundColor,
|
||
4 years ago
|
body: ListView(
|
||
|
children: [
|
||
4 years ago
|
ASSearchTextField(
|
||
|
controller: _controller,
|
||
|
hintText: '搜索',
|
||
|
),
|
||
4 years ago
|
ASSearchTextField.button(
|
||
|
hintText: '搜索',
|
||
4 years ago
|
onPressed: () {},
|
||
4 years ago
|
),
|
||
|
],
|
||
|
),
|
||
4 years ago
|
);
|
||
|
}
|
||
|
}
|