taro 1.0.1 copy "taro: ^1.0.1" to clipboard
taro: ^1.0.1 copied to clipboard

Taro is a library for loading data from network and saving it to storage to speed up data loading.

example/lib/main.dart

import 'package:dio/dio.dart';
import 'package:example/app.dart';
import 'package:example/dio_http.dart';
import 'package:flutter/material.dart';
import 'package:taro/taro.dart';

void main() {
  const useDio = true;
  if (useDio) {
    Taro.instance.networkLoader = TaroLoaderNetwork(
      client: DioHttp(
        dio: Dio()
          ..options.connectTimeout = const Duration(seconds: 10)
          ..options.receiveTimeout = const Duration(seconds: 10),
      ),
    );
  }

  runApp(const App());
}
1
likes
0
pub points
25%
popularity

Publisher

unverified uploader

Taro is a library for loading data from network and saving it to storage to speed up data loading.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

clock, crypto, flutter, http, image, path_provider

More

Packages that depend on taro