mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
30 lines
671 B
Dart
30 lines
671 B
Dart
import 'package:flutter/cupertino.dart';
|
|
|
|
class Space extends StatelessWidget {
|
|
final double width;
|
|
final double height;
|
|
|
|
const Space(this.width, this.height, {Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) => SizedBox(width: width, height: height);
|
|
}
|
|
|
|
class VSpace extends StatelessWidget {
|
|
final double size;
|
|
|
|
const VSpace(this.size, {Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) => Space(0, size);
|
|
}
|
|
|
|
class HSpace extends StatelessWidget {
|
|
final double size;
|
|
|
|
const HSpace(this.size, {Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) => Space(size, 0);
|
|
}
|