date_time_picker_ultra 0.0.1 copy "date_time_picker_ultra: ^0.0.1" to clipboard
date_time_picker_ultra: ^0.0.1 copied to clipboard

This Flutter package provides a collection of customizable DateTime pickers, including dropdowns, dialog boxes, and widget bases. With this package, developers can easily integrate date and time selec [...]

example/lib/main.dart

import 'dart:developer';
import 'package:date_time_picker_ultra/date_time_picker_ultra.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 const MaterialApp(
      title: 'Date Time Picker Ultra',
      home: MyHomePage(title: 'Date Time Picker Ultra'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});
  final String title;
  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            DateTimePickerUltraDialog(
              selectedDate: DateTime.now(),
              initialTime: TimeOfDay.now(),
              showDatePicker: true,
              showTimePicker: true,
              onPress: (DateTime dateTime) {
                log(dateTime.toString());
              },
              iconColor: Colors.grey,
              color: Colors.orangeAccent,
            ),
            DateTimePickerUltraDropdown(
              selectedDate: DateTime.now(),
              initialTime: TimeOfDay.now(),
              showDatePicker: true,
              showTimePicker: true,
              onPress: (DateTime dateTime) {
                log(dateTime.toString());
              },
              iconColor: Colors.grey,
              color: Colors.orangeAccent,
            ),
            TimeSelectorUltra(
              selectedHour: 4,
              selectedMint: 32,
              isAm: true,
              iconColor: Colors.grey,
              color: Colors.orangeAccent,
              onChange: (TimeOfDay timeOfDay) {
                log(timeOfDay.toString());
              },
            ),
            DatePickerUltra(
              selectedDate: DateTime.now(),
              iconColor: Colors.grey,
              color: Colors.orangeAccent,
              onChange: (DateTime date) {
                log(date.toString());
              },
            ),
          ],
        ),
      ),
    );
  }
}
14
likes
120
points
46
downloads

Publisher

unverified uploader

Weekly Downloads

This Flutter package provides a collection of customizable DateTime pickers, including dropdowns, dialog boxes, and widget bases. With this package, developers can easily integrate date and time selection functionality into their Flutter applications with various customization options to suit their UI needs.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter, intl

More

Packages that depend on date_time_picker_ultra