full_screen_date_picker 0.0.3 copy "full_screen_date_picker: ^0.0.3" to clipboard
full_screen_date_picker: ^0.0.3 copied to clipboard

Flutter package that gives you the ability to pick a date in beautiful full screen UI.

example/lib/main.dart

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

void main() => runApp(MaterialApp(home: MyApp()));

class MyApp extends StatefulWidget {
  _MyAppState createState() => _MyAppState();
}

// Stateful widget
class _MyAppState extends State<MyApp> {
  String selectedDate = 'Press the fab to selected a date';

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      // View selected date in the screen
      body: Center(child: Text(selectedDate)),
      // Button to show the date dialog
      floatingActionButton: FloatingActionButton(onPressed: () => onPressed()),
    );
  }

  void onPressed() async {
    DateTime result = await Navigator.push(
      context,
      MaterialPageRoute(builder: (_) => FullScreenDatePicker()),
    );

    if (result != null) {
      setState(() => this.selectedDate = result.toString());
    }
  }
}
8
likes
120
pub points
54%
popularity

Publisher

unverified uploader

Flutter package that gives you the ability to pick a date in beautiful full screen UI.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, intl

More

Packages that depend on full_screen_date_picker