ready_image 0.0.11 copy "ready_image: ^0.0.11" to clipboard
ready_image: ^0.0.11 copied to clipboard

outdated

Simple and customizable image which is wrapper for cached network image ad part of ready packages

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:ready_image/config.dart';
import 'package:ready_image/ready_image.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ReadyImageConfig(
      resolveUrl: (context, path) {
        return Uri.parse('http://site.com/$path');
      },
      child: MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: const MyHomePage(),
      ),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const ReadyImage(path: 'image_1/.png');
  }
}
5
likes
0
pub points
9%
popularity

Publisher

verified publishernew-step-apps.com

Simple and customizable image which is wrapper for cached network image ad part of ready packages

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cached_network_image, cached_network_image_platform_interface, flutter, flutter_cache_manager

More

Packages that depend on ready_image