flutter_bs_ad_calendar 1.0.1 copy "flutter_bs_ad_calendar: ^1.0.1" to clipboard
flutter_bs_ad_calendar: ^1.0.1 copied to clipboard

outdated

Flutter package for nepali/english date picker.

example/lib/main.dart

import 'dart:collection';

import 'package:calendar_example/pages/dynamic_calendar.dart';
import 'package:flutter/material.dart';

import 'pages/basic_calendar.dart';
import 'pages/event_calendar.dart';
import 'pages/feature_calendar.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 Nepali Calendar',
      theme: ThemeData(
        colorScheme: const ColorScheme.light(
          primary: Colors.lightBlue,
          secondary: Colors.red,
        ),
      ),
      home: const MyHomePage(title: 'Flutter Nepali Calendar'),
    );
  }
}

/// Example event class.
class Event {
  final String title;

  const Event(this.title);

  @override
  String toString() => title;
}

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

  final String? title;

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

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title ?? ''),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            const SizedBox(height: 30.0),
            ElevatedButton(
              child: const Text('Basics Calendar'),
              onPressed: () => Navigator.push(
                context,
                MaterialPageRoute(builder: (_) => const BasicCalendar()),
              ),
            ),
            const SizedBox(height: 15.0),
            ElevatedButton(
              child: const Text('Dynamic Calendar'),
              onPressed: () => Navigator.push(
                context,
                MaterialPageRoute(builder: (_) => const DynamicCalendar()),
              ),
            ),
            const SizedBox(height: 15.0),
            ElevatedButton(
              child: const Text('Calendar with Features'),
              onPressed: () => Navigator.push(
                context,
                MaterialPageRoute(builder: (_) => const FeatureCalendar()),
              ),
            ),
            const SizedBox(height: 15.0),
            ElevatedButton(
              child: const Text('Calendar with Event'),
              onPressed: () => Navigator.push(
                context,
                MaterialPageRoute(builder: (_) => const EventCalendar()),
              ),
            ),
            const SizedBox(height: 30.0),
          ],
        ),
      ),
    );
  }
}
1
likes
0
points
43
downloads

Publisher

verified publisherbeetechsolution.com

Weekly Downloads

Flutter package for nepali/english date picker.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, intl, nepali_utils

More

Packages that depend on flutter_bs_ad_calendar