Files
lunasea/lib/core/ui/card.dart
2021-11-22 21:56:10 -05:00

32 lines
787 B
Dart

import 'package:flutter/material.dart';
import 'package:lunasea/core.dart';
class LunaCard extends Card {
LunaCard({
Key key,
@required BuildContext context,
@required Widget child,
EdgeInsets margin = LunaUI.MARGIN_CARD,
Color color,
Decoration decoration,
double height,
double width,
}) : super(
key: key,
child: Container(
child: child,
decoration: decoration,
height: height,
width: width,
),
margin: margin,
color: color ?? Theme.of(context).primaryColor,
shape: LunaUI.shapeBorder,
elevation: LunaUI.ELEVATION,
clipBehavior: Clip.antiAlias,
) {
assert(context != null);
assert(child != null);
}
}