flyout 1.0.2 copy "flyout: ^1.0.2" to clipboard
flyout: ^1.0.2 copied to clipboard

Simple flyouts

Simple flyouts

Features #

  • Easy to call flyouts
  • Scroll controller via context in child flyout

Usage #

import 'package:flyout/flyout.dart';

class SomeScreen extends StatelessWidget {
  const SomeScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) => Scaffold(
        appBar: AppBar(
          title: const Text("Some Screen"),
        ),
        body: Center(
          child: ElevatedButton(
            onPressed: () => flyout(context, () => const ImAFlyoutScreen()),
            child: const Text("Show Flyout"),
          ),
        ),
      );
}

class ImAFlyoutScreen extends StatelessWidget {
  const ImAFlyoutScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) => Scaffold(
    body: ListView(
      // Scrolling will move the flyout and the scroller
      controller: flyoutController(context),
      children: [],
    ),
  );
}
0
likes
130
points
92
downloads

Publisher

verified publisherarcane.art

Weekly Downloads

Simple flyouts

Repository (GitHub)

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on flyout