mirai_dropdown_menu 0.0.9+1 copy "mirai_dropdown_menu: ^0.0.9+1" to clipboard
mirai_dropdown_menu: ^0.0.9+1 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'),
            );
          },
        );
      },
    );
  }
}
45
likes
140
points
39
downloads

Publisher

verified publishermiraidevs.com

Weekly Downloads

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

More

Packages that depend on mirai_dropdown_menu