Skip to main content

arabize_test 1.0.0 copy "arabize_test: ^1.0.0" to clipboard
arabize_test: ^1.0.0 copied to clipboard

Flutter test helpers for running widget tests in both text directions.

arabize_test #

Flutter test helpers for running widget tests in both text directions.

import 'package:arabize_test/arabize_test.dart';

testWidgetsBothDirections('shows the back button', () => const MyPage(),
    (tester, direction) async {
  expect(find.byIcon(Icons.arrow_back), findsOneWidget);
});

testGoldensBothDirections('card', () => const MyCard(), name: 'card');

Goldens are written to goldens/card.ltr.png and goldens/card.rtl.png and rendered with a bundled Arabic font (Amiri), so Arabic text shows up instead of boxes. Call loadArabicFont() yourself if you write your own golden tests.

pumpRtl(tester, widget) pumps a single widget in RTL.

Part of arabize.

0
likes
160
points
669
downloads

Documentation

API reference

Publisher

verified publisheromarelnasherty.com

Weekly Downloads

Flutter test helpers for running widget tests in both text directions.

Repository (GitHub)
View/report issues

Topics

#arabic #rtl #localization #flutter

License

MIT (license)

Dependencies

flutter, flutter_test

More

Packages that depend on arabize_test