busy 1.0.0 copy "busy: ^1.0.0" to clipboard
busy: ^1.0.0 copied to clipboard

A flutter package that focuses on the busy state.

example/lib/main.dart

import 'package:example/busy_widget_page.dart';
import 'package:flutter/material.dart';
import 'busy_cupertino_scaffold_page.dart';
import 'busy_scaffold_page.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Demo',
      theme: ThemeData(useMaterial3: true, colorSchemeSeed: Colors.blue),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text(widget.title),
        ),
        body: SafeArea(
          child: Center(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.start,
              children: <Widget>[
                FilledButton(
                    onPressed: () {
                      Navigator.push(
                        context,
                        MaterialPageRoute(builder: (context) => const BusyScaffoldPage()),
                      );
                    },
                    child: const Text("Go to busy sfaffold")),
                FilledButton(
                    onPressed: () {
                      Navigator.push(
                        context,
                        MaterialPageRoute(builder: (context) => const BusyCupertinoScaffoldPage()),
                      );
                    },
                    child: const Text("Go to busy cupertino sfaffold")),
                FilledButton(
                    onPressed: () {
                      Navigator.push(
                        context,
                        MaterialPageRoute(builder: (context) => const BusyWidgetPage()),
                      );
                    },
                    child: const Text("Go to busy widget")),
              ],
            ),
          ),
        ));
  }
}
2
likes
0
pub points
28%
popularity

Publisher

unverified uploader

A flutter package that focuses on the busy state.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on busy