linear_calender 0.0.1
linear_calender: ^0.0.1 copied to clipboard
A linear calender for flutter
Features #
- This is a calender which is linear.
- this calender contains date and day.
- this is a fully customisable package
Getting Started #
At first Add dependency
To use Linear_Calendar_Flutter, add the following line to your pubspec.yaml file:
dependencies:
linear_calendar_flutter: ^1.0.0
Usage #
import 'package:flutter/material.dart';
import 'package:linear_calendar_flutter/linear_calendar_flutter.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text("Linear Calendar Example")),
body: Padding(
padding: const EdgeInsets.all(8.0),
child: LinearCalendar(
selectedColor: Colors.green,
unselectedColor: Colors.amber,
onChanged: (DateTime value) {
debugPrint(
"*****************${value}***************************");
},
height: 70,
unselectedTextColor: Colors.black,
selectedTextColor: Colors.white,
backgroundColor: Colors.transparent,
)
),
),
);
}
}