mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 12:42:34 +00:00
32 lines
787 B
Dart
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);
|
|
}
|
|
}
|