Inline calendar
An inline calendar keeps dates visible while a reader compares days. Use it when the month grid belongs on the page alongside a schedule.
Choose a day on the calendar
#Choose a day in November, then browse to December and choose another. The date below the calendar follows the selection.
components/calendar/appliance/pick_day.dart
import 'package:flutter/widgets.dart';
import 'package:material_ui/material_ui.dart' show MaterialLocalizations;
import 'package:appliance_ui/appliance_ui.dart';
class PickDay extends StatefulWidget {
const PickDay({super.key});
@override
State<PickDay> createState() => _PickDayState();
}
class _PickDayState extends State<PickDay> {
final schedule = DesignCalendarController(
firstDate: DateTime(2026, 11),
lastDate: DateTime(2026, 12, 31),
currentDate: DateTime(2026, 11, 12),
selectedDate: DateTime(2026, 11, 12),
);
@override
void dispose() {
schedule.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) => ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 360),
child: SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
ApplianceCalendar(controller: schedule),
const SizedBox(height: 12),
ListenableBuilder(
listenable: schedule,
builder: (context, _) {
final day = schedule.selectedDate;
return Text(
day == null
? 'Choose a day'
: 'Selected: ${MaterialLocalizations.of(context).formatCompactDate(day)}',
);
},
),
],
),
),
);
}
Parameters
ApplianceCalendar API ↗controller- Owns the date limits, visible month and selected day.
Shared behaviour
- Keyboard and focus. Use the month controls to browse and focus a date to select it. Try the arrow keys in the day grid.
- Screen readers. Inspect the month heading and day names, then read the selected date under the grid.
- Direction and type. Compare the two reading directions at phone width. In larger type the month grid can be scrolled into view.