mirai_dropdown_menu 0.0.8+2 copy "mirai_dropdown_menu: ^0.0.8+2" to clipboard
mirai_dropdown_menu: ^0.0.8+2 copied to clipboard

MiraiDevs developed the Mirai Dropdown Menu Package. Using this package, you can set a static list of objects or a list you have downloaded from an API.

example/lib/main.dart

import 'package:example/app/screens/home_screen/home_screen.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';

import 'app/core/utils/app_size_config.dart';

void main() {
  // const bool isProduction = bool.fromEnvironment('dart.vm.product');
  // if (isProduction) {
  //   // analyser does not like empty function body
  //   // debugPrint = (String message, {int wrapWidth}) {};
  //   // so i changed it to this:
  //   debugPrint = (String? message, {int? wrapWidth}) {};
  // }
  runApp(const MyApp());
}

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return LayoutBuilder(
      builder: (_, BoxConstraints boxConstraints) {
        return OrientationBuilder(
          builder: (__, Orientation orientation) {
            /// init sizes
            AppSizeConfig.init(
              orientation: orientation,
              constraints: boxConstraints,
            );
            return MaterialApp(
              title: 'Mirai dropdown menu example',
              debugShowCheckedModeBanner: false,
              theme: ThemeData(
                primarySwatch: Colors.blue,
                primaryColor: Colors.transparent,
                textTheme: TextTheme(
                  displayMedium: GoogleFonts.nunito(),
                  labelLarge: GoogleFonts.nunito(),
                ),
              ),
              home: const HomeScreen(title: 'Mirai Dropdown menu \nExample'),
            );
          },
        );
      },
    );
  }
}
37
likes
100
pub points
86%
popularity

Publisher

verified publishermiraidevs.com

MiraiDevs developed the Mirai Dropdown Menu Package. Using this package, you can set a static list of objects or a list you have downloaded from an API.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter, flutter_keyboard_visibility

More

Packages that depend on mirai_dropdown_menu