Reverting views refactoring
This commit is contained in:
@ -4,13 +4,11 @@ class HACard extends StatelessWidget {
|
||||
|
||||
final List<Entity> entities;
|
||||
final String friendlyName;
|
||||
final bool hidden;
|
||||
|
||||
const HACard({
|
||||
Key key,
|
||||
this.entities,
|
||||
this.friendlyName,
|
||||
this.hidden
|
||||
this.friendlyName
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
@ -18,13 +16,9 @@ class HACard extends StatelessWidget {
|
||||
List<Widget> body = [];
|
||||
body.add(_buildCardHeader());
|
||||
body.addAll(_buildCardBody(context));
|
||||
if (hidden) {
|
||||
return Container(height: 0.0,);
|
||||
} else {
|
||||
return Card(
|
||||
child: new Column(mainAxisSize: MainAxisSize.min, children: body)
|
||||
);
|
||||
}
|
||||
return Card(
|
||||
child: new Column(mainAxisSize: MainAxisSize.min, children: body)
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildCardHeader() {
|
||||
|
Reference in New Issue
Block a user