feat: plan view, wip plan view model

This commit is contained in:
2024-02-16 20:32:34 +07:00
parent 3c1f7e210a
commit 0762a8ab0c
15 changed files with 989 additions and 55 deletions

View File

@@ -9,7 +9,7 @@ class ButtonView extends StatelessWidget {
final double? height, width, widthSuffix, widthPrefix, marginVertical;
final EdgeInsetsGeometry? contentPadding;
final bool isSecondaryColor, isOutlined, heightWrapContent, disabled;
final Color? backgroundColor, textColor, borderColor;
final Color? backgroundColor, textColor, borderColor, disabledBgColor;
final MainAxisAlignment? mainAxisAlignmentContent;
// final _widthBtn = SizeConfig.screenWidth / 1.5;
final _widthBtn = SizeConfig.width * .9;
@@ -34,6 +34,7 @@ class ButtonView extends StatelessWidget {
this.backgroundColor,
this.borderColor,
this.textColor,
this.disabledBgColor,
this.textWeight = FontWeight.bold,
this.textSize,
this.textAlign = TextAlign.center,
@@ -65,7 +66,7 @@ class ButtonView extends StatelessWidget {
height: heightWrapContent ? null : height ?? _heightBtn,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
disabledBackgroundColor: isOutlined ? Colors.white : color.surface,
disabledBackgroundColor: disabledBgColor ?? (isOutlined ? Colors.white : color.surface),
padding: contentPadding,
backgroundColor: backgroundColor ??
(isOutlined