In the Flutter date range picker, you can style the current month date cell by using the cellDecoration property of the DateRangePickerMonthCellStyle. import 'package:flutter/material.dart'; import 'package:syncfusion_flutter_datepicker/datepicker.dart'; void main() => runApp(CurrentMonthCellCustomization()); class CurrentMonthCellCustomization extends StatelessWidget { Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, home: Scaffold( body: SafeArea( child: Card( margin: const EdgeInsets.fromLTRB(50, 150, 50, 150), child: SfDateRangePicker( view: DateRangePickerView.month, monthViewSettings: DateRangePickerMonthViewSettings(showTrailingAndLeadingDates: true, ), monthCellStyle: DateRangePickerMonthCellStyle( todayTextStyle: TextStyle(color: Colors.cyanAccent), cellDecoration: BoxDecoration(color:Colors.teal),), ), ), ), ), ); } }
|
This page will automatically be redirected to the sign-in page in 10 seconds.