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 { @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(), ], ), ), ], ), ), ); } }