synchro_http 0.3.7
synchro_http: ^0.3.7 copied to clipboard
A new Flutter package that helps with the auto caching http requests.
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()),
);
}
}