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

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
150
points
46
downloads

Publisher

verified publishernew-step-apps.com

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

cached_network_image, cached_network_image_platform_interface, flutter, flutter_cache_manager

More

Packages that depend on ready_image