fluter Appbra

39 阅读1分钟
appBar: PreferredSize(
  preferredSize: Size.fromHeight(60),
  child: AnnotatedRegion<SystemUiOverlayStyle>(
    value: SystemUiOverlayStyle.light.copyWith(
      statusBarColor: Color(0xFF009946),
    ),
    child: SafeArea(
      child: Container(
        height: 60,
        padding: EdgeInsets.symmetric(horizontal: 12),
        color: Color(0xFF009946),
        child: Row(
          children: [
            Expanded(child: Container(
             height: 40,
              alignment: Alignment.centerLeft,
              padding: EdgeInsets.symmetric(horizontal: 10),
              decoration: BoxDecoration(
                color: Colors.white,
                borderRadius: BorderRadius.circular(12)
              ),
              child: Row(
                children: [
                  Image.asset(
                    "assets/images/scdc.png",
                    width: 16,
                    height: 16,
                  ),
                  SizedBox(width: 6,),
                  Text('Find your car' , style: TextStyle( color: Color(0xFF999999)),),
                ],
              )
            ),
            ),
            SizedBox(width: 10,),
            Image.asset(
              "assets/images/QUANQIU.png",
              width: 24,
              height: 22,
            )
          ],
        ),
      ),
    ),
  ),
),