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

A flutter plugin to show animated horizontal view of calendar with date picker.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  var selectedDate;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Animated Calender Example"),
      ),

      ///This is demo use [AnimatedHorizontalCalendar] calender
      ///You can customized all property

      body: Container(
        height: 100,
        child: AnimatedHorizontalCalendar(
            tableCalenderIcon: Icon(
              Icons.calendar_today,
              color: Colors.white,
            ),
            date: DateTime.now(),
            textColor: Colors.black45,
            backgroundColor: Colors.white,
            tableCalenderThemeData: ThemeData.light().copyWith(
              primaryColor: Colors.green,
              buttonTheme: ButtonThemeData(textTheme: ButtonTextTheme.primary),
              colorScheme: ColorScheme.light(primary: Colors.green)
                  .copyWith(secondary: Colors.red),
            ),
            selectedColor: Colors.redAccent,
            onDateSelected: (date) {
              selectedDate = date;
            }),
      ),
    );
  }
}
37
likes
70
pub points
64%
popularity

Publisher

unverified uploader

A flutter plugin to show animated horizontal view of calendar with date picker.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, intl

More

Packages that depend on animated_horizontal_calendar