Resolves #348 Button entity refactoring
This commit is contained in:
		| @@ -15,24 +15,25 @@ class ButtonEntityContainer extends StatelessWidget { | |||||||
|     if (entityWrapper.entity.statelessType > StatelessEntityType.MISSED) { |     if (entityWrapper.entity.statelessType > StatelessEntityType.MISSED) { | ||||||
|       return Container(width: 0.0, height: 0.0,); |       return Container(width: 0.0, height: 0.0,); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     return InkWell( |     return InkWell( | ||||||
|       onTap: () => entityWrapper.handleTap(), |       onTap: () => entityWrapper.handleTap(), | ||||||
|       onLongPress: () => entityWrapper.handleHold(), |       onLongPress: () => entityWrapper.handleHold(), | ||||||
|       child: Column( |       child: FractionallySizedBox( | ||||||
|         mainAxisSize: MainAxisSize.min, |         widthFactor: 1, | ||||||
|         children: <Widget>[ |         child: Column( | ||||||
|           FractionallySizedBox( |           children: <Widget>[ | ||||||
|             widthFactor: 0.4, |             LayoutBuilder( | ||||||
|             child: FittedBox( |                 builder: (BuildContext context, BoxConstraints constraints) { | ||||||
|                 fit: BoxFit.fitHeight, |                   return EntityIcon( | ||||||
|                 child: EntityIcon( |                     padding: EdgeInsets.fromLTRB(2.0, 6.0, 2.0, 2.0), | ||||||
|                   padding: EdgeInsets.fromLTRB(2.0, 6.0, 2.0, 2.0), |                     size: constraints.maxWidth / 2.5, | ||||||
|                   size: Sizes.iconSize, |                   ); | ||||||
|                 ) |                 } | ||||||
|             ), |             ), | ||||||
|           ), |             _buildName() | ||||||
|           _buildName() |           ], | ||||||
|         ], |         ), | ||||||
|       ), |       ), | ||||||
|     ); |     ); | ||||||
|   } |   } | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| part of '../main.dart'; | part of '../../main.dart'; | ||||||
| 
 | 
 | ||||||
| class CardHeaderWidget extends StatelessWidget { | class CardHeaderWidget extends StatelessWidget { | ||||||
| 
 | 
 | ||||||
| @@ -113,7 +113,7 @@ part 'ui_class/sizes_class.dart'; | |||||||
| part 'ui_class/panel_class.dart'; | part 'ui_class/panel_class.dart'; | ||||||
| part 'ui_widgets/view.dart'; | part 'ui_widgets/view.dart'; | ||||||
| part 'cards/widgets/card_widget.dart'; | part 'cards/widgets/card_widget.dart'; | ||||||
| part 'ui_widgets/card_header_widget.dart'; | part 'cards/widgets/card_header_widget.dart'; | ||||||
| part 'panels/config_panel_widget.dart'; | part 'panels/config_panel_widget.dart'; | ||||||
| part 'panels/widgets/link_to_web_config.dart'; | part 'panels/widgets/link_to_web_config.dart'; | ||||||
| part 'utils/logger.dart'; | part 'utils/logger.dart'; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user