parent
bf96f4e539
commit
adc0960307
After Width: | Height: | Size: 1016 B |
After Width: | Height: | Size: 2.3 KiB |
@ -0,0 +1,28 @@
|
|||||||
|
import 'package:akuCommunity/utils/headers.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class CarparkingCard extends StatelessWidget {
|
||||||
|
final bool outdated;
|
||||||
|
const CarparkingCard({Key key, @required this.outdated}) : super(key: key);
|
||||||
|
|
||||||
|
String get _assetImage {
|
||||||
|
return outdated
|
||||||
|
? R.ASSETS_STATIC_PARKING_GREY_WEBP
|
||||||
|
: R.ASSETS_STATIC_PARKING_YELLOW_WEBP;
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return AspectRatio(
|
||||||
|
aspectRatio: 688 / 286,
|
||||||
|
child: Container(
|
||||||
|
child: Column(
|
||||||
|
children: [],
|
||||||
|
),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
image: DecorationImage(image: AssetImage(_assetImage)),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue