fresh 0.0.1 copy "fresh: ^0.0.1" to clipboard
fresh: ^0.0.1 copied to clipboard

outdated

A Dart HTTP Client with built-in token refresh. Fresh is built on top of package:http and manages tokens transparently.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:fresh_example/app/app.dart';
import 'package:fresh_example/simple_bloc_delegate.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:jsonplaceholder_client/jsonplaceholder_client.dart';
import 'package:photos_repository/photos_repository.dart';
import 'package:user_repository/user_repository.dart';

void main() {
  BlocSupervisor.delegate = SimpleBlocDelegate();
  final jsonplaceholderClient = JsonplaceholderClient();
  final photosRepository = PhotosRepository(jsonplaceholderClient);
  final userRepository = UserRepository(jsonplaceholderClient);

  runApp(App(
    photosRepository: photosRepository,
    userRepository: userRepository,
  ));
}
141
likes
0
pub points
80%
popularity

Publisher

verified publisherfelangel.dev

A Dart HTTP Client with built-in token refresh. Fresh is built on top of package:http and manages tokens transparently.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, meta

More

Packages that depend on fresh