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
widgetinside a Directionality with the giventextDirection. -
testGoldensBothDirections(
String description, Widget build(), {required String name, Size size = const Size(400, 200)}) → void -
Compares
buildagainst golden files in both text directions. -
testWidgetsBothDirections(
String description, Widget build(), Future< void> body(WidgetTester tester, TextDirection direction), {bool skip = false}) → void -
Runs
bodytwice, once for left-to-right and once for right-to-left.