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.
ansu_ui/example/lib/widgets/example_divider.dart

75 lines
1.9 KiB

import 'package:ansu_ui/ansu_ui.dart';
import 'package:ansu_ui/divider/as_dotted_divider.dart';
import 'package:flutter/material.dart';
class ExampleDivider extends StatefulWidget {
ExampleDivider({Key key}) : super(key: key);
@override
_ExampleDividerState createState() => _ExampleDividerState();
}
class _ExampleDividerState extends State<ExampleDivider> {
@override
Widget build(BuildContext context) {
return ASScaffold(
title: '分割线',
body: Center(
child: Column(
children: [
Container(
width: double.infinity,
height: 50.w,
color: Colors.red,
child: 'ASDivider'.text.make(),
),
ASDivider(
color: Colors.black,
),
Row(
children: [
Container(
height: 50.w,
color: Colors.red,
).expand(),
ASVDivider(),
Container(
height: 50.w,
color: Colors.red,
).expand(),
],
),
ASDivider(),
Container(
width: double.infinity,
height: 50.w,
color: Colors.red,
child: 'ASDottedDivider'.text.make(),
),
ASDottedDivider.horizontal(
color: Colors.black,
),
Container(
height: 100.w,
child: Row(
children: [
Container(
color: Colors.red,
).expand(),
ASDottedDivider.vertical(
color: Colors.black,
),
Container(
color: Colors.red,
).expand(),
],
),
),
],
),
),
);
}
}