Flutter novice pit Detailed

Flutter novice pit Detailed

Record what pit zero Flutter encountered, might long to update
the original link: https://blog.csdn.net/weixin_44259356/article/details/104905384
Deep

Container set custom fillet

Renderings

Here Insert Picture Description

Code

Note: Color can not set the Container color, conflict.

decoration: new BoxDecoration(
 //设置颜色
 color: Color(0xFFCE9F76),
 //设置四周圆角 角度 这里 设置了下面两个角为圆
 borderRadius: BorderRadius.only(bottomRight: Radius.circular(10),bottomLeft:Radius.circular(10)),
 ),

Flutter color

format

color: Color(0xFFCE9F76)

or

color:Colors.red

Explanation

The first set rgba relax, after 0x two of transparency, the four 16-bit color, and the addition RGBO self Now ARGB arrangement.

TabBar custom menu bar

TabBar when using custom menu prompt for the handover if the member width is defined, it should not be displayed in Expanded nested outside Container

Published 46 original articles · won praise 6 · views 9371

Guess you like

Origin blog.csdn.net/weixin_44259356/article/details/104905384