customized_dropdown 0.0.8 copy "customized_dropdown: ^0.0.8" to clipboard
customized_dropdown: ^0.0.8 copied to clipboard

Customized dropdown to make developement easyly.

example/lib/main.dart

import 'package:customized_dropdown/customized_dropdown.dart';
import 'package:flutter/material.dart';

void main() {
  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 MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const HomeScreen(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    String? values;
    return Scaffold(
      body: Column(
        children: [
          CustomizedDropdown(
            hintText: 'Please select',
            list: <String>['A', 'B', 'C', 'D'].map((String value) {
              return DropdownMenuItem<String>(
                value: value,
                child: Text(value),
              );
            }).toList(),
            selectedValue: values,
            onChange: (val) {
              values = '$val';
            },
          )
        ],
      ),
    );
  }
}
3
likes
125
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

Customized dropdown to make developement easyly.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

dropdown_button2, flutter

More

Packages that depend on customized_dropdown