passo_mobile_app/lib/screens/unit2/basic-info/components/cover-image.dart

22 lines
672 B
Dart
Raw Normal View History

import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
class CoverImage extends StatelessWidget {
const CoverImage({super.key});
@override
Widget build(BuildContext context) {
return Container(
color: Colors.grey,
child: CachedNetworkImage(
imageUrl:
2023-04-11 01:27:53 +00:00
"https://live.staticflickr.com/7320/9052838885_af9b21c79b_b.jpg",
// 'https://static.vecteezy.com/system/resources/thumbnails/008/074/253/small/tropical-forest-sunset-nature-background-with-coconut-trees-vector.jpg',
width: double.infinity,
height: 220,
fit: BoxFit.cover,
),
);
}
}