Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
refactor(translation): support for textDirection
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Oct 21, 2021
1 parent 2eaa2ce commit 697d8da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import './plugins/helpers/logger.dart';
import './plugins/helpers/ui.dart';
import './plugins/router.dart';
import './plugins/state.dart';
import './plugins/translator/translator.dart';

Future<void> main(final List<String> args) async {
try {
Expand Down Expand Up @@ -92,7 +93,10 @@ class _MainAppState extends State<MainApp> {
final Animation<double> a1,
final Animation<double> a2,
) =>
route.builder(context),
Directionality(
textDirection: Translator.t.textDirection,
child: route.builder(context),
),
transitionsBuilder: (
final BuildContext context,
final Animation<double> a1,
Expand Down

0 comments on commit 697d8da

Please sign in to comment.