flutter_image_widget 0.0.2 copy "flutter_image_widget: ^0.0.2" to clipboard
flutter_image_widget: ^0.0.2 copied to clipboard

A new Flutter flutter_image_widget.

example/lib/main.dart

import 'package:example/src/utils/image_constant.dart';
import 'package:flutter/material.dart';
import 'package:flutter_image_widget/flutter_image_widget.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: WithAssets(),
    );
  }
}


class WithAssets extends StatelessWidget {
  const WithAssets({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.grey,
      body: Center(
        child:
        FlutterImageWidget(
          height: 100,
          width: 100,
          imageAssetPath: ImageConstant.logo,
          radius: BorderRadius.circular(20),
        ),
      ),
    );
  }
}

class WithUrl extends StatelessWidget {
  const WithUrl({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child:
        FlutterImageWidget(
          height: 100,
          width: 100,
          url: "set_image_url_here",
          radius: BorderRadius.circular(20),
        ),
      ),
    );
  }
}
4
likes
140
points
54
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter flutter_image_widget.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

cached_network_image, flutter, flutter_svg

More

Packages that depend on flutter_image_widget