分割线修改

hmxc
张萌 4 years ago
parent bd07b758d8
commit 2259f86607

@ -1,8 +1,8 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
//线
class AkuDiveder {
final bool isReverse;
final bool isReverse;//
const AkuDiveder({Key key,this.isReverse=false});
Widget verticalDivider(double height) {
return Container(
@ -29,8 +29,8 @@ class AkuDiveder {
height: 1.w,
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
begin: Alignment.centerLeft,
end: Alignment.centerRight,
colors: isReverse
? [
Color(0xFFE8E8E8),

@ -356,7 +356,10 @@ class _HomePageState extends State<HomePage> {
_card('22', '处理中事项', Color(0xFFFFC40C)),
],
),
AkuDiveder().horizontalDivider(343.w),
Row(children: [
AkuDiveder().horizontalDivider(343.w),
AkuDiveder(isReverse: true).horizontalDivider(343.w)
]),
Row(
children: [
_card('25', '已处理事项', Color(0xFF3F8FFE)),

Loading…
Cancel
Save