Comments (4)
This is the code i use inside the body of my Page-Scaffold:
CalendarControllerProvider<CalendarGarbageEntry>(
controller: _eventController,
child: LayoutBuilder(builder: (context, constraints) {
final double maxWidth = constraints.maxWidth;
return MonthView(
controller: _eventController,
minMonth: DateTime(2022),
maxMonth: DateTime(DateTime.now().year + 2, 12, 31),
cellAspectRatio: 1.5,
weekDayBuilder: (index) => CapWeekDayTile(
dayIndex: index,
),
width: maxWidth,
);
}),
),
This is the Source-code of the weekDayBuilder i use in order to get german week titles:
import 'package:flutter/material.dart';
class CapWeekDayTile extends StatelessWidget {
static final List<String> weekTitles = ["Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"];
final int dayIndex;
final Color backgroundColor;
final bool displayBorder;
final TextStyle? textStyle;
const CapWeekDayTile({
Key? key,
required this.dayIndex,
this.backgroundColor = Colors.white,
this.displayBorder = true,
this.textStyle,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
alignment: Alignment.center,
margin: EdgeInsets.zero,
padding: const EdgeInsets.symmetric(vertical: 10.0),
decoration: BoxDecoration(
color: backgroundColor,
border: Border.all(
color: const Color(0xffdddddd),
width: displayBorder ? 0.5 : 0,
),
),
child: Text(
weekTitles[dayIndex],
style: textStyle ??
const TextStyle(
fontSize: 17,
color: Colors.black,
),
),
);
}
}
from flutter_calendar_view.
Hello @philitell , If possible, Please provide an code example.
from flutter_calendar_view.
Is there a scheduled release for this update any time soon?
from flutter_calendar_view.
Any update on this? The error also occurs in desktop even in MonthView
from flutter_calendar_view.
Related Issues (20)
- Can the title at the top control hiding and display? HOT 2
- How to add a custom line on the timeline of the network as shown below:
- ScrollController is scrolling parent
- Event tile builder: minimum tile height
- Hide header in Week View HOT 2
- How to add a custom widget at the current time when clicking on onDateTap in the weekly view? HOT 1
- Weekday border dose not change with monthview show border false HOT 1
- Week View Full Day Events Header Title
- Week view and minuteSlot dimming ? HOT 1
- Min/max hour for week and day view HOT 4
- Scroll issue in DayView HOT 1
- Remove all event from Calendar HOT 2
- Lock horizontal scroll HOT 1
- How to hide date in column header? HOT 3
- How to get tap location in onDateTap, onEventTap callbacks? HOT 2
- How to change selected day in MonthView? HOT 1
- How to limit start and end hours in WeekView? HOT 1
- Apply filter for full day's events HOT 1
- Can set width for each day in weekday view and swipe horizontally?
- Why does DayView.onEventTap return a list? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_calendar_view.