Gauge card elements scale fix
This commit is contained in:
@ -3,13 +3,17 @@ part of '../../main.dart';
|
||||
class CardWrapper extends StatelessWidget {
|
||||
|
||||
final Widget child;
|
||||
final EdgeInsets padding;
|
||||
|
||||
const CardWrapper({Key key, this.child}) : super(key: key);
|
||||
const CardWrapper({Key key, this.child, this.padding: const EdgeInsets.all(0)}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Card(
|
||||
child: child,
|
||||
child: Padding(
|
||||
padding: padding,
|
||||
child: child
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user