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

21 lines
595 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:
'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,
),
);
}
}