meet_network_image 0.1.2 copy "meet_network_image: ^0.1.2" to clipboard
meet_network_image: ^0.1.2 copied to clipboard

A flutter package for showing Image from Url with LoadingBuilder and ErrorBuilder.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:meet_network_image/meet_network_image.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: Text('MeetNetworkImage example'),
        ),
        body: Container(
          child: SingleChildScrollView(
            child: Column(
              children: <Widget>[
                MeetNetworkImage(
                  height: 200,
                  width: 200,
                  fit: BoxFit.fill,
                  color: Colors.blue,
                  colorBlendMode: BlendMode.difference,
                  imageUrl:
                      "https://random.dog/3f62f2c1-e0cb-4077-8cd9-1ca76bfe98d5.jpg",
                  loadingBuilder: (context) => Center(
                        child: CircularProgressIndicator(),
                      ),
                  errorBuilder: (context, e) => Center(
                        child: Text('Error appear!'),
                      ),
                ),
                MeetNetworkImage(
                  imageUrl:
                      "https://random.dog/3f62f2c1-e0cb-4077-8cd9-1ca76bfe98d5.jpg",
                  loadingBuilder: (context) => Center(
                        child: CircularProgressIndicator(),
                      ),
                  errorBuilder: (context, e) => Center(
                        child: Text('Error appear!'),
                      ),
                ),
                MeetNetworkImage(
                  imageUrl: "asdqwdsadasdaedaedaeadeassda",
                  loadingBuilder: (context) => Center(
                        child: CircularProgressIndicator(),
                      ),
                  errorBuilder: (context, e) => Center(
                        child: Text('Error appear!'),
                      ),
                ),
                SizedBox(
                  height: 100,
                )
              ],
            ),
          ),
        ),
      ),
    );
  }
}
17
likes
40
pub points
57%
popularity

Publisher

unverified uploader

A flutter package for showing Image from Url with LoadingBuilder and ErrorBuilder.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on meet_network_image