当我在 Flutter 中使用TextField小部件并将属性autoFocus的值设置为true 时
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: TextField(
autofocus: true,
),
),
);
}
}
Run Code Online (Sandbox Code Playgroud)
颤振抛出错误
I/flutter (31721): ??? EXCEPTION CAUGHT BY FOUNDATION LIBRARY ?????????????????????????????????????????????????????????
I/flutter (31721): The following assertion was thrown while dispatching notifications for FocusNode:
I/flutter (31721): RenderBox was not laid out: RenderEditable#bf516 NEEDS-LAYOUT …Run Code Online (Sandbox Code Playgroud) 在 Dart 站点中,他们说整数大小是 64 位,这是整数的最大大小,还是任何整数的大小,即使整数是一个小数字,例如 12?
如果每个整数大小都是 64 位,这会影响应用程序的性能吗?