custom_image 0.0.6
custom_image: ^0.0.6 copied to clipboard
This package adapts to the general needs of various projects, providing an effective and fast visual solution.
import 'package:custom_image/custom_image.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Custom Image Example',
home: Scaffold(
appBar: AppBar(
title: const Text('Custom Image Example'),
),
body: Center(
child: SingleChildScrollView(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
CustomImage(
'https://img.freepik.com/foto-gratis/pintura-lago-montana-montana-al-fondo_188544-9126.jpg',
height: 250,
width: 250,
borderRadius: BorderRadius.circular(50),
filterQuality: FilterQuality.high,
fit: BoxFit.cover,
),
],
),
),
),
),
);
}
}