Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
533 views
in Technique[技术] by (71.8m points)

flutter display .9 image,how to clear show image

in flutter,i want to show .9 image.and i use DecorationImage's centerSlice.and i have 3x image 156x48 px. but now i want to make widget height to 16px.if i change image size to 52x16.the image will blurring. how can i do this thanks.

Container(
              decoration: BoxDecoration(
                image: DecorationImage(
                  image: AssetImage('images/icon_vip_bg.png'),// 256x48 i want to sale to 1/3
                  centerSlice: Rect.fromLTWH(10, 8, 20, 0.5),
                ),
              ),
              child: Container(
                height: 48, // i want to make height to 16
                width: 200,
                padding: EdgeInsets.only(left: 10,right: 20),
                child: Text('abcde',style: TextStyle(fontSize: 12,color: Colors.redAccent),),
              ),
            )
question from:https://stackoverflow.com/questions/65623128/flutter-display-9-image-how-to-clear-show-image

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...