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.
90 lines
2.4 KiB
90 lines
2.4 KiB
4 years ago
|
import 'package:ansu_ui/ansu_ui.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
4 years ago
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||
4 years ago
|
|
||
|
class ExampleListTile extends StatefulWidget {
|
||
|
ExampleListTile({Key key}) : super(key: key);
|
||
|
|
||
|
@override
|
||
|
_ExampleListTileState createState() => _ExampleListTileState();
|
||
|
}
|
||
|
|
||
|
class _ExampleListTileState extends State<ExampleListTile> {
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return ASScaffold(
|
||
|
title: 'ASListTile',
|
||
|
body: ListView(
|
||
4 years ago
|
padding: EdgeInsets.symmetric(horizontal: 12.w),
|
||
4 years ago
|
children: [
|
||
4 years ago
|
SizedBox(
|
||
|
height: 8.w,
|
||
|
),
|
||
4 years ago
|
ASOptionTile(
|
||
|
items: [
|
||
|
ASListTile(
|
||
4 years ago
|
title: '转单号(UPS)',
|
||
|
text: 'DFADN2329TNAGA',
|
||
|
trail: InkWell(
|
||
|
onTap: () {},
|
||
|
child: SizedBox(
|
||
|
width: 20.w,
|
||
|
height: 20.w,
|
||
|
child: Placeholder(),
|
||
|
),
|
||
4 years ago
|
),
|
||
4 years ago
|
),
|
||
|
ASListTile(
|
||
|
title: '订单编号',
|
||
|
text:
|
||
|
'DDAWMFOAGNAIOWNGOANIWOGNAOWIDJAWIOHFA92474Y2798489TY892YH8G67TGT2UBF29GB8298H42897YH472H',
|
||
|
// trail: Icon(Icons.ac_unit_outlined),
|
||
|
),
|
||
|
ASListTile.option(
|
||
|
title: '分类管理',
|
||
|
text: '分类管理',
|
||
|
trail: InkWell(
|
||
|
onTap: () {},
|
||
4 years ago
|
child: SizedBox(
|
||
|
width: 20.w,
|
||
|
height: 32.w,
|
||
|
),
|
||
4 years ago
|
),
|
||
4 years ago
|
),
|
||
4 years ago
|
],
|
||
4 years ago
|
),
|
||
4 years ago
|
20.hb,
|
||
|
ASOptionTile(
|
||
|
items: List.generate(
|
||
|
3,
|
||
|
(index) => ASOptionTileItem(
|
||
|
leading: Icon(Icons.verified),
|
||
|
title: Text('Test'),
|
||
|
onPressed: () {},
|
||
|
),
|
||
|
),
|
||
|
),
|
||
4 years ago
|
20.hb,
|
||
4 years ago
|
ASOptionTile.single(
|
||
|
item: ASEditTile(
|
||
|
title: Text('TEST'),
|
||
|
),
|
||
|
),
|
||
4 years ago
|
20.hb,
|
||
|
ASOptionTile.single(
|
||
|
item: ASVerticalTileItem(
|
||
4 years ago
|
title: Text('AS Vertical Tile'),
|
||
4 years ago
|
child: TextField(),
|
||
|
),
|
||
|
),
|
||
4 years ago
|
20.hb,
|
||
|
ASOptionTile(
|
||
|
leading: '基础信息',
|
||
|
items: [],
|
||
|
),
|
||
4 years ago
|
],
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|