Answers for "text direction from style flutter"

11

flutter column text direction

Column(  
        crossAxisAlignment: CrossAxisAlignment.center,
        mainAxisAlignment: MainAxisAlignment.center,
        verticalDirection: VerticalDirection.down,
        textBaseline: TextBaseline.alphabetic,
        textDirection: TextDirection.ltr,
        mainAxisSize: MainAxisSize.max,
        children: [
          Text('Column 1'),
          Text('Column 2')
        ],
      ),
Posted by: Guest on August-30-2021
0

flutter text direction auto

import 'package:intl/intl.dart' as intl;

bool isRTL(String text) {
    return intl.Bidi.detectRtlDirectionality(text);
}
Posted by: Guest on August-11-2021

Browse Popular Code Answers by Language