Created
November 9, 2022 17:38
-
-
Save aniekan12/03d9bb2c1a8a5bba8e0a2aef2e9073f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class ImageWidget extends StatelessWidget { | |
final String imageUrl; | |
const ImageWidget({Key? key, required this.imageUrl}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Center( | |
child: Image.network( | |
imageUrl, | |
height: 130, | |
width: 130, | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment