提交 65715bcf authored 作者: 袁静春's avatar 袁静春

提交:修改布局;

上级 cdc03b79
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_clx_base/utils/image_utils.dart';
import 'package:flutter_clx_base/widget/image_widget.dart';
class StateLayout extends StatefulWidget {
......@@ -62,25 +63,26 @@ class _StateLayoutState extends State<StateLayout> {
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
const SizedBox(height: 30.0),
Offstage(
offstage: img.isEmpty,
child: Container(
height: 133.5 * 2,
width: 95 * 2,
decoration: BoxDecoration(
image: DecorationImage(
image: ImageUtils.getAssetImage(img),
),
),
child: ImageWidget.loadAssetImage(
img,
width: 133.5*2,
height: 95*2,
),
),
const SizedBox(
height: 16.0,
),
Text(
hintText,
style: const TextStyle(fontSize: 14, color: Colors.grey),
style: const TextStyle(
color: Color(0xff86909C),
fontSize: 7.0,
fontWeight: FontWeight.normal,
),
),
const SizedBox(height: 30.0),
],
);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论