katana_indicator 2.2.11 copy "katana_indicator: ^2.2.11" to clipboard
katana_indicator: ^2.2.11 copied to clipboard

A package to make it easier to use Flutter's indicators (especially when waiting for processing in Future).

example/lib/main.dart

// Flutter imports:
import 'package:flutter/material.dart';

// Package imports:
import 'package:katana_indicator/katana_indicator.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: const ShortenPage(),
      title: "Flutter Demo",
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text("App Demo")),
      body: Container(
        color: Colors.blue,
        child: const ColoredBox(
          color: Colors.red,
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {
          debugPrint("Start");
          Future.delayed(const Duration(seconds: 3)).showIndicator(context);
          debugPrint("End");
        },
        child: const Icon(Icons.check),
      ),
    );
  }
}
4
likes
160
points
6.2k
downloads

Publisher

verified publishermathru.net

Weekly Downloads

A package to make it easier to use Flutter's indicators (especially when waiting for processing in Future).

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, katana

More

Packages that depend on katana_indicator