text_auto_direction 0.0.2
text_auto_direction: ^0.0.2 copied to clipboard
A Flutter package that provides the AutoDirection widget for automatic text direction detection.
import 'package:flutter/material.dart';
import 'package:text_auto_direction/text_auto_direction.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: Scaffold(
body: Center(
child: AutoDirection(
text: "مرحبًا بك في Flutter!",
child: Text("مرحبًا بك في Flutter!"),
),
),
),
);
}
}