flexible_calendar_widget 1.0.0
flexible_calendar_widget: ^1.0.0 copied to clipboard
A customizable calendar widget for Flutter applications.
flutter_custom_calendar #
A customizable calendar widget for Flutter applications that allows users to select dates and navigate between months seamlessly, while providing full customization of appearance.
Features #
- Customizable appearance: Change the background color, selected day color, and text color.
- Date selection: Users can easily select a date by tapping on the desired day.
- Month navigation: Navigate between months using intuitive back and forward buttons.
- Responsive design: Adaptable to various screen sizes with a user-friendly layout.
Getting started #
-
Add
flutter_custom_calendaras a dependency in yourpubspec.yamlfile:dependencies: flutter_custom_calendar: ^1.0.0 -
Install the package:
flutter pub get -
Import the package in your Dart file:
import 'package:flutter_custom_calendar/flutter_custom_calendar.dart';
Usage #
Here’s a simple example of how to use the CustomCalendar widget in your application:
```dart
import 'package:flutter/material.dart';
import 'package:flutter_custom_calendar/flutter_custom_calendar.dart';
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Custom Calendar Example'),
),
body: Center(
child: CustomCalendar(
selectedDate: DateTime.now(),
backgroundColor: Colors.white,
selectedDayColor: Colors.orange,
textColor: Colors.black,
onDateSelected: (DateTime date) {
print('Selected date: $date');
},
),
),
),
);
}
}
void main() {
runApp(MyApp());
}
Contributing #
Contributions are welcome! If you would like to contribute to the flutter_custom_calendar, please follow these steps:
- Fork the repository.
- Create a new branch (git checkout -b feature-branch).
- Make your changes and commit them (git commit -m 'Add some feature').
- Push to the branch (git push origin feature-branch).
- Open a Pull Request.