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

outdated

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,
            accentColor: Colors.red,
            colorScheme: ColorScheme.light(primary: Colors.green),
            buttonTheme: ButtonThemeData(textTheme: ButtonTextTheme.primary),
          ),
          selectedColor: Colors.redAccent,
          onDateSelected: (date){
            selectedDate = date;
         } 
       ),
      ),
    );
  }
}
37
likes
0
pub points
66%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, intl

More

Packages that depend on animated_horizontal_calendar