mirror of
https://github.com/smmarty/friflex_flutter_starter.git
synced 2025-12-22 01:20:46 +00:00
refactor(full refactor): Рефакторинг стартера (#8)
This commit is contained in:
21
lib/ui_kit/components/app_box.dart
Normal file
21
lib/ui_kit/components/app_box.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
/// {@template HBox}
|
||||
/// HBox виджет для вертикального отступа (Надстройка над SizedBox)
|
||||
/// [height] - высота отступа
|
||||
/// [key] - ключ виджета
|
||||
/// {@endtemplate}
|
||||
class HBox extends SizedBox {
|
||||
/// {@macro HBox}
|
||||
const HBox(double height, {super.key}) : super(height: height);
|
||||
}
|
||||
|
||||
/// {@template WBox}
|
||||
/// WBox виджет для вертикального отступа (Надстройка над SizedBox)
|
||||
/// [width] - ширина отступа
|
||||
/// [key] - ключ виджета
|
||||
/// {@endtemplate}
|
||||
class WBox extends SizedBox {
|
||||
/// {@macro WBox}
|
||||
const WBox(double width, {super.key}) : super(width: width);
|
||||
}
|
||||
Reference in New Issue
Block a user