Add padding widget

merge-requests/67/merge
Hank Grabowski 2022-11-08 20:18:32 -06:00
rodzic aab7c4db14
commit 83729b9fb4
1 zmienionych plików z 29 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,29 @@
import 'package:flutter/material.dart';
class VerticalPadding extends StatelessWidget {
static const defaultHeight = 20.0;
final double height;
const VerticalPadding({super.key, this.height = defaultHeight});
@override
Widget build(BuildContext context) {
return SizedBox(
height: height,
);
}
}
class HorizontalPadding extends StatelessWidget {
static const defaultWidth = 10.0;
final double width;
const HorizontalPadding({super.key, this.width = defaultWidth});
@override
Widget build(BuildContext context) {
return SizedBox(
width: width,
);
}
}