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

Flutter plugin for selecting time zone with features of search filter, current time zone and different selection types with highly customization options.

example/lib/main.dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:timezone_dropdown_plus/timezone_dropdown_plus.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        debugShowCheckedModeBanner: false,
        title: 'Timezone DropDown Plus',
        theme: ThemeData(
            colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
            useMaterial3: true),
        home: const MyHomePage());
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: const Text('Timezone DropDown Plus')),
        body: Padding(
            padding: const EdgeInsets.all(20),
            child: Column(children: [
              TimezoneDropdown(
                  value: ' Africa/Addis_Ababa',
                  hintText: 'Select Timezone',
                  onTimezoneSelected: (v) {
                    debugPrint(v);
                  },
                  popupProps: const PopupProps.menu(
                      showSearchBox: true,
                      searchFieldProps: TextFieldProps(
                          padding: EdgeInsets.all(20),
                          decoration: InputDecoration(hintText: 'Search...'))),
                  dropdownButtonProps: const DropdownButtonProps(
                      icon: Icon(CupertinoIcons.chevron_up_chevron_down)))
            ])));
  }
}
11
likes
150
points
210
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for selecting time zone with features of search filter, current time zone and different selection types with highly customization options.

Repository (GitHub)

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

dropdown_search, flutter, flutter_native_timezone_updated_gradle, timezone

More

Packages that depend on timezone_dropdown_plus