RenderFlex溢出了右边的74个像素

问题描述 投票:0回答:1

存在此问题,主要是由于url的图像,已尝试扩展或灵活仍然无法解决此问题...请对此寻求帮助,非常紧急

 child: AppBar(
        centerTitle: true,
        title: Row(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: <Widget>[
            Row(
              children: <Widget>[
                Image.asset("assets/images/ic_title_menu.png",height: 16.0,width: 16.0,),
                SizedBox(width: 10,),
                Image.asset("assets/images/ic_title_search.png",height: 16.0,width: 16.0,)
              ],
            ),
            Row(
              children: <Widget>[
                  Image.network("http://rcwebsitecss.gbfine.com/Mobile_SportsII/images/logo/display_logo_007.png",),
              ],
            ),
            Row(
              children: <Widget>[
                Column(
                  children: <Widget>[
                    Text(
                      'cgb_test_08',
                       style: TextStyle(color: Colors.white, fontSize: 12),
                    ),
                    Text(
                      '1000',
                       style: TextStyle(color: Colors.white, fontSize: 12),
                    )
                  ],
                ),
                SizedBox(width: 10,),
                Image.asset("assets/images/ic_user_center.png",height: 16.0,width: 16.0,)
              ],
            ),
          ],
        ),
      ),
    ),
    body: Center(
flutter flutter-layout
1个回答
0
投票
尝试一下。

import 'package:flutter/material.dart'; class Amd extends StatelessWidget { @override Widget build(BuildContext context) { return Container( decoration: BoxDecoration( image: DecorationImage( image: NetworkImage("Image Address"), ), ), constraints: BoxConstraints( maxWidth: 100, maxHeight: 200, ), ); } }

© www.soinside.com 2019 - 2024. All rights reserved.