timeline_calendar 1.0.0 copy "timeline_calendar: ^1.0.0" to clipboard
timeline_calendar: ^1.0.0 copied to clipboard

Flutter package to display a horizontal calendar.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: Scaffold(
        backgroundColor: Colors.grey,
        body: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            TimelineCalendar(
              initialDate: DateTime.now(),
              firstDate: DateTime.now().subtract(const Duration(days: 365)),
              lastDate: DateTime.now().add(const Duration(days: 365)),
              onDateSelected: (date) => print(date),
              leftMargin: 20,
              activeDayColor: Colors.white,
              disabledColor: Colors.black54,
              activeBackgroundDayColor: Colors.black,
              locale: 'pt',
            ),
          ],
        ),
      ),
    );
  }
}
6
likes
0
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter package to display a horizontal calendar.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, intl, scrollable_positioned_list

More

Packages that depend on timeline_calendar