Skip to content

Instantly share code, notes, and snippets.

@aniekan12
Created November 9, 2022 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aniekan12/03d9bb2c1a8a5bba8e0a2aef2e9073f5 to your computer and use it in GitHub Desktop.
Save aniekan12/03d9bb2c1a8a5bba8e0a2aef2e9073f5 to your computer and use it in GitHub Desktop.
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