@@ -46,6 +46,8 @@ class PageControl extends StatelessWidget {
4646 orElse: () => ScrollMode .none);
4747
4848 final autoScroll = control.attrBool ("autoScroll" , false )! ;
49+ final textDirection =
50+ control.attrBool ("rtl" , false )! ? TextDirection .rtl : TextDirection .ltr;
4951
5052 Control ? offstage;
5153 Control ? appBar;
@@ -176,43 +178,46 @@ class PageControl extends StatelessWidget {
176178 theme: lightTheme,
177179 darkTheme: darkTheme,
178180 themeMode: themeMode,
179- home: Scaffold (
180- appBar: appBarView != null
181- ? AppBarControl (
182- parent: control,
183- control: appBarView.control,
184- children: appBarView.children,
185- parentDisabled: disabled,
186- height: appBarView.control.attrDouble (
187- "toolbarHeight" , kToolbarHeight)! ,
188- theme: theme)
189- : null ,
190- body: Stack (children: [
191- SizedBox .expand (
192- child: Container (
193- padding:
194- parseEdgeInsets (control, "padding" ) ??
181+ home: Directionality (
182+ textDirection: textDirection,
183+ child: Scaffold (
184+ appBar: appBarView != null
185+ ? AppBarControl (
186+ parent: control,
187+ control: appBarView.control,
188+ children: appBarView.children,
189+ parentDisabled: disabled,
190+ height: appBarView.control.attrDouble (
191+ "toolbarHeight" , kToolbarHeight)! ,
192+ theme: theme)
193+ : null ,
194+ body: Stack (children: [
195+ SizedBox .expand (
196+ child: Container (
197+ padding: parseEdgeInsets (
198+ control, "padding" ) ??
195199 const EdgeInsets .all (10 ),
196- decoration: BoxDecoration (
197- color: HexColor .fromString (
198- theme,
199- control.attrString (
200- "bgcolor" , "" )! )),
201- child: scrollMode != ScrollMode .none
202- ? ScrollableControl (
203- child: column,
204- scrollDirection: Axis .vertical,
205- scrollMode: scrollMode,
206- autoScroll: autoScroll,
207- )
208- : column)),
209- ...offstageWidgets,
210- const PageMedia ()
211- ]),
212- floatingActionButton: fab.isNotEmpty
213- ? createControl (offstage, fab.first.id, disabled)
214- : null ,
215- ),
200+ decoration: BoxDecoration (
201+ color: HexColor .fromString (
202+ theme,
203+ control.attrString (
204+ "bgcolor" , "" )! )),
205+ child: scrollMode != ScrollMode .none
206+ ? ScrollableControl (
207+ child: column,
208+ scrollDirection: Axis .vertical,
209+ scrollMode: scrollMode,
210+ autoScroll: autoScroll,
211+ )
212+ : column)),
213+ ...offstageWidgets,
214+ const PageMedia ()
215+ ]),
216+ floatingActionButton: fab.isNotEmpty
217+ ? createControl (
218+ offstage, fab.first.id, disabled)
219+ : null ,
220+ )),
216221 );
217222 });
218223 });
0 commit comments