arabize_test library

Flutter test helpers for Arabic and RTL.

Constants

arabicTestFontFamily → const String
The family name of the bundled Arabic font.
arabizeTestVersion → const String
The package version.

Functions

loadArabicFont() → Future<void>
Registers the bundled Amiri font so Arabic text renders with real glyphs in tests. Safe to call more than once.
pumpRtl(WidgetTester tester, Widget widget, {TextDirection textDirection = TextDirection.rtl, Duration? duration}) → Future<void>
Pumps widget inside a Directionality with the given textDirection.
testGoldensBothDirections(String description, Widget build(), {required String name, Size size = const Size(400, 200)}) → void
Compares build against golden files in both text directions.
testWidgetsBothDirections(String description, Widget build(), Future<void> body(WidgetTester tester, TextDirection direction), {bool skip = false}) → void
Runs body twice, once for left-to-right and once for right-to-left.