Closed niuxinyu closed 1 month ago
I agree, the output is not great here. Output like this is one of the reasons why we're rewriting the formatter and moving to a new style (#1253). With the new in-progress style, the output looks like:
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return Center(
child: Row(mainAxisAlignment: MainAxisAlignment.center, children: [
const Text('你好'),
]),
);
}
}
Since the new formatter does a good job on this code and we're planning to move to that, I'm going to go ahead and close this.
This is the test code
and this is what it looks like
At the position of the Row component, the line break is not quite right,i think Maybe it should look something like this?
And ,this is what it looks like in android studio