Right to left (RTL) in Flutter Calendar (SfCalendar)
20 Mar 2020 / 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.
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Right to Left'),
),
body: Directionality(
textDirection: TextDirection.rtl,
child: SfCalendar(
view: CalendarView.month,
),
),
);
}
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page