下面是我的 xml,它给了我一个警告。
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
android:tag="xlarge">
.......
</RelativeLayout>
</Layout>
Run Code Online (Sandbox Code Playgroud)
不知道是什么问题?它向我展示了那个警告。但希望得到任何帮助来解决它。尝试在互联网上搜索它,但找不到任何有用的东西。
以下是我收到的警告...
ERROR: View field thirdPartyLayout collides with a variable or import
Run Code Online (Sandbox Code Playgroud) 我尝试使用new Listview但不知道其中出了什么问题 - 它总是显示一些错误,例如“预期为 1 个参数,但输入 0”,即使我将收缩包装写为 true。
删除 Column 对我也不起作用。
我尝试在互联网上搜索一些解决方案,因为我仍在学习这门语言。我无法找出正确的写法。
import 'package:flutter/material.dart';
class SignupPage extends StatefulWidget {
@override
_SignupPageState createState() => _SignupPageState();
}
class _SignupPageState extends State<SignupPage> {
@override
Widget build(BuildContext context) {
return new Scaffold(
resizeToAvoidBottomPadding: false,
body: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
child: Stack(
children: <Widget>[
Container(
padding: EdgeInsets.fromLTRB(16.0, 100.0, 0.0, 0.0),
child: Text(
'Signup',
style: TextStyle(
fontSize: 80.0, fontWeight: FontWeight.bold),
),
),
Container(
padding: EdgeInsets.fromLTRB(260.0, 105.0, 0.0, 0.0),
child: Text(
'.',
style: …Run Code Online (Sandbox Code Playgroud)