packagist_network 1.2.2 copy "packagist_network: ^1.2.2" to clipboard
packagist_network: ^1.2.2 copied to clipboard

Wrapper network request library for dio.

example/lib/main.dart

import 'dart:async';

import 'package:example/network/network_page.dart';
import 'package:flutter/material.dart';
import 'package:log_wrapper/log/log.dart';
import 'package:oktoast/oktoast.dart';

import 'app_service.dart';

void main() {
  runZonedGuarded(() async {
    WidgetsFlutterBinding.ensureInitialized();
    await AppService.init();
    runApp(const MyApp());
  }, (Object error, StackTrace stack) {
    logStackE("$error", error, stack);
  });
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: const NetworkPage(),
      builder: (context, widget) {
        return OKToast(child: widget!);
      },
    );
  }
}
0
likes
125
points
34
downloads

Publisher

unverified uploader

Weekly Downloads

Wrapper network request library for dio.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

crypto, dio, flutter, log_wrapper

More

Packages that depend on packagist_network