Flutter中的SliverAppBar

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,
          

猜你喜欢

转载自blog.csdn.net/BianHuanShiZhe/article/details/132043794