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