SliverAppBar(
  title: Text(''),
  leading:null,
  automaticallyImplyLeading: false,
  expandedHeight: 250,
  backgroundColor: Colors.white,
  flexibleSpace: FlexibleSpaceBar(
    background: Container(

      height: 200.h,
      color: Colors.white,
      margin: EdgeInsets.only(top: 20.h,left: 20.w,right: 20.w),
      child: Column(
        mainAxisAlignment:MainAxisAlignment.start,
        children: [
         Container(
           child:  Row(

             mainAxisAlignment: MainAxisAlignment.spaceBetween,
             children: [
               Image.asset(ImageRes.appMock,
                   width: 40.w, height: 40.w),
               SizedBox(width: 20.w),
               Text('客户无忧', style: PageStyle.ts_1A1A1A_14sp),
               SizedBox(width: 10.w),
               Container(
                   height: 14.h,
                   padding:
                   EdgeInsets.only(left: 10.w, right: 10.w),
                   alignment: Alignment.center,
                   decoration: BoxDecoration(
                     color: Color(0xFFECECEC),
                     borderRadius: BorderRadius.circular(12.r),
                   ),
                   child: Text('应用',
                       style: PageStyle.ts_333333_8sp)),
               Spacer(),
             ],
           ),
         ),
         SizedBox(height: 10.h),
         Container(
           color: Colors.red,
           child: Text("简单实用的客户管理系统 4+"),
         ),
        ],
      ),


    ),
    collapseMode: CollapseMode.parallax,
  ),
),
Logo

开源鸿蒙跨平台开发社区汇聚开发者与厂商,共建“一次开发,多端部署”的开源生态,致力于降低跨端开发门槛,推动万物智联创新。

更多推荐