kopia lustrzana https://gitlab.com/mysocialportal/relatica
Add padding widget
rodzic
aab7c4db14
commit
83729b9fb4
|
@ -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,
|
||||
);
|
||||
}
|
||||
}
|
Ładowanie…
Reference in New Issue