guru_sdk/guru_ui/packages/guru_widgets/lib/common/spacer.dart

19 lines
441 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
/// Created by @Haoyi on 4/14/21
class SizedSpacer extends StatelessWidget {
final double? width;
final double? height;
const SizedSpacer({Key? key, this.width = 0, this.height = 0}) : super(key: key);
@override
Widget build(BuildContext context) => SizedBox(width: width, height: height);
}
class EmptySpacer extends SizedSpacer {
const EmptySpacer({Key? key}) : super(key: key);
}