s_client 2.0.0 copy "s_client: ^2.0.0" to clipboard
s_client: ^2.0.0 copied to clipboard

Safe-by-default HTTP client with dual backend support (http/dio), never throws exceptions, returns result tuples, supports interceptors, retry logic, and type-safe JSON parsing.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:s_client_example/screens/home_screen.dart';

void main() {
  runApp(const SClientExampleApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 's_client Example',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const HomeScreen(),
    );
  }
}
0
likes
160
points
96
downloads

Publisher

unverified uploader

Weekly Downloads

Safe-by-default HTTP client with dual backend support (http/dio), never throws exceptions, returns result tuples, supports interceptors, retry logic, and type-safe JSON parsing.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, s_packages

More

Packages that depend on s_client