ente/lib/ui/common/divider_with_padding.dart

25 lines
524 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
class DividerWithPadding extends StatelessWidget {
2023-01-07 12:43:15 +00:00
final double left, top, right, bottom, thickness;
const DividerWithPadding({
Key? key,
this.left = 0,
this.top = 0,
this.right = 0,
this.bottom = 0,
2023-01-07 12:43:15 +00:00
this.thickness = 0.5,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: EdgeInsets.fromLTRB(left, top, right, bottom),
child: Divider(
2023-01-07 12:43:15 +00:00
thickness: thickness,
),
);
}
}