any_loading 0.0.1+1 any_loading: ^0.0.1+1 copied to clipboard
Use without context, showToast/showLoading/showNetLoading/showModal for Flutter.
import 'package:any_loading/any_loading.dart';
import 'package:example/test_page.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const TestPage(),
builder: AnyLoading.init(),
);
}
}