Glance card padding fixes
This commit is contained in:
		| @@ -53,17 +53,22 @@ class GlanceCard extends StatelessWidget { | |||||||
|       ); |       ); | ||||||
|     } |     } | ||||||
|     return CardWrapper( |     return CardWrapper( | ||||||
|       child: Column( |       child: Center( | ||||||
|         mainAxisSize: MainAxisSize.min, |         child: Padding( | ||||||
|         children: <Widget>[ |           padding: EdgeInsets.only(bottom: Sizes.rowPadding), | ||||||
|           CardHeader(name: card.title), |           child: Column( | ||||||
|           Padding( |             mainAxisSize: MainAxisSize.min, | ||||||
|             padding: EdgeInsets.symmetric(vertical: Sizes.rowPadding), |             children: <Widget>[ | ||||||
|             child: Table( |               CardHeader( | ||||||
|               children: rows |                 name: card.title, | ||||||
|             ) |                 emptyPadding: Sizes.rowPadding, | ||||||
|  |               ), | ||||||
|  |               Table( | ||||||
|  |                 children: rows | ||||||
|  |               ) | ||||||
|  |             ], | ||||||
|           ) |           ) | ||||||
|         ], |         ) | ||||||
|       ) |       ) | ||||||
|     ); |     ); | ||||||
|   } |   } | ||||||
| @@ -88,16 +93,14 @@ class GlanceCard extends StatelessWidget { | |||||||
|       result.add(_buildState()); |       result.add(_buildState()); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     return Center( |     return InkResponse( | ||||||
|       child: InkResponse( |       child: Column( | ||||||
|         child: Column( |         mainAxisSize: MainAxisSize.min, | ||||||
|           mainAxisSize: MainAxisSize.min, |         children: result, | ||||||
|           children: result, |  | ||||||
|         ), |  | ||||||
|         onTap: () => entityWrapper.handleTap(), |  | ||||||
|         onLongPress: () => entityWrapper.handleHold(), |  | ||||||
|         onDoubleTap: () => entityWrapper.handleDoubleTap(), |  | ||||||
|       ), |       ), | ||||||
|  |       onTap: () => entityWrapper.handleTap(), | ||||||
|  |       onLongPress: () => entityWrapper.handleHold(), | ||||||
|  |       onDoubleTap: () => entityWrapper.handleDoubleTap(), | ||||||
|     ); |     ); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user