playx_network 0.2.3 playx_network: ^0.2.3 copied to clipboard
playx_network is a Wrapper around Dio that can perform api request with better error handling and easily get the result of any api request.
import 'package:flutter/material.dart';
import 'package:playx_network_example/home.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Playx Network',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(),
);
}
}