synchro_http 0.3.7 copy "synchro_http: ^0.3.7" to clipboard
synchro_http: ^0.3.7 copied to clipboard

A new Flutter package that helps with the auto caching http requests.

example/lib/main.dart

import 'package:example/src/screens/posts.dart/index.dart';
import 'package:flutter/material.dart';
import 'package:synchro_http/synchro_http.dart';

void main() async {
  SynchroHttp.baseUrl = "https://jsonplaceholder.typicode.com";
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepOrange),
        useMaterial3: true,
      ),
      home: const NetworkStatusWidget(child: PostsIndex()),
    );
  }
}
0
likes
140
points
3
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter package that helps with the auto caching http requests.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

connectivity_plus, flutter, hive, hive_flutter, hive_generator, http, path, path_provider, rxdart

More

Packages that depend on synchro_http