Right to left (RTL) in Flutter Event Calendar (SfCalendar)

23 Apr 2021 / 1 minute to read

SfCalendar supports changing the layout direction of the widget in the right-to-left direction by using the Directionality widget textDirection property to rtl.

You can also change the right to left direction by specifying locale, which support RTL language such as (Arabic ,Persian ,Hebrew, Pashto, Urdu) by specifying the MaterialApp properties and adding the flutter_localizations package to your application.

Widget build(BuildContext context) {
       return Scaffold(
           appBar: AppBar(
               title: Text('Right to Left'),
           body: Directionality(
               textDirection: TextDirection.rtl,
               child: SfCalendar(
               view: CalendarView.month,