resource_network_fetcher 1.1.1 copy "resource_network_fetcher: ^1.1.1" to clipboard
resource_network_fetcher: ^1.1.1 copied to clipboard

Uses the NetworkBoundResources to control the offline-first or only to centralize the errors from fetching from the network or any other function.

example/lib/main.dart

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

import 'error_mapper.dart';
import 'home_page.dart';

void main() {
  Resource.setErrorMapper(ErrorMapper.from);
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: HomePage(title: 'Flutter Demo Home Page'),
    );
  }
}
8
likes
120
pub points
78%
popularity

Publisher

unverified uploader

Uses the NetworkBoundResources to control the offline-first or only to centralize the errors from fetching from the network or any other function.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on resource_network_fetcher