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/lib/divider/as_divider.dart

49 lines
1.1 KiB

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
///安速水平分割线
class ASDivider extends StatelessWidget {
final Color color;
final double height;
final double indent;
final double endIndent;
ASDivider({Key key, this.indent, this.endIndent})
: color = const Color(0xFFE9E9E9),
height = 1.w,
super(key: key);
@override
Widget build(BuildContext context) {
return Divider(
color: color,
height: height,
thickness: height,
indent: indent,
endIndent: endIndent,
);
}
}
///安速 垂直分割线
class ASVDivider extends StatelessWidget {
final Color color;
final double height;
final double indent;
final double endIndent;
ASVDivider({Key key, this.indent, this.endIndent})
: color = const Color(0xFFE9E9E9),
height = 1.w,
super(key: key);
@override
Widget build(BuildContext context) {
return VerticalDivider(
color: color,
width: height,
thickness: height,
indent: indent,
endIndent: endIndent,
);
}
}