nepali_date_picker 4.1.0

Flutter Android iOS web

Material and Cupertino Style Date Picker and Calendar with Bikram Sambat(Nepali) Calendar Support. Supports Android, iOS and Fuchsia. Available in Nepali and English Languages.

example/lib/main.dart

// Copyright 2019 Sarbagya Dhaubanjar. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:nepali_date_picker_example/modes/calendar_date_picker_widget.dart';
import 'package:nepali_date_picker_example/modes/date_picker_widget.dart';

void main() => runApp(MyApp());

/// MyApp
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.deepPurple,
      ),
      title: 'Nepali Date Picker Demo',
      home: DefaultTabController(
        length: 2,
        child: Scaffold(
          appBar: AppBar(
            title: Text("Nepali Date Picker"),
            centerTitle: true,
            bottom: TabBar(
              tabs: [
                Tab(text: 'Date Picker'),
                Tab(text: 'Calendar'),
              ],
            ),
          ),
          body: TabBarView(
            children: [
              DatePickerWidget(),
              CalendarDatePickerWidget(),
            ],
          ),
        ),
      ),
    );
  }
}
14
likes
95
pub points
83%
popularity

Publisher

sarbagyastha.com.np

Material and Cupertino Style Date Picker and Calendar with Bikram Sambat(Nepali) Calendar Support. Supports Android, iOS and Fuchsia. Available in Nepali and English Languages.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

flutter, nepali_utils

More

Packages that depend on nepali_date_picker