flyout

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

flyout

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: [],
),
);
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.