my_popup_menu 0.0.2 copy "my_popup_menu: ^0.0.2" to clipboard
my_popup_menu: ^0.0.2 copied to clipboard

outdated

My Popup Menu!

example/lib/main.dart

import 'package:flutter/widgets.dart';
import 'package:flutter_platform_widgets/flutter_platform_widgets.dart';
import 'package:my_popup_menu/my_popup_menu.dart';

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return const PlatformApp(
      title: 'Flutter Demo',
      home: ExampleHomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return PlatformScaffold(
      appBar: PlatformAppBar(
        title: MyPopupIconButton(
          isSelected: true,
          menuContent: const MyPopupMenu(
            size: Size(150, 200),
            child: Text("Hello World!"),
          ),
          selectedIcon: Icon(
            PlatformIcons(context).book,
          ),
          notSelectedIcon: Icon(
            PlatformIcons(context).book,
          ),
        ),
      ),
    );
  }
}
2
likes
0
points
55
downloads

Publisher

unverified uploader

Weekly Downloads

My Popup Menu!

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

equatable, flutter, flutter_platform_widgets

More

Packages that depend on my_popup_menu