Commit e52b4358 authored by 杜欣's avatar 杜欣

一级/二级方案头部高度

parent c82a5d29
......@@ -3,6 +3,8 @@
* @date 2019-10-13
**/
import 'dart:io';
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
......@@ -502,6 +504,12 @@ Widget baseSliverAppBar(String url,
elevation: elevation ?? 0,
expandedHeight: height ?? 200,
automaticallyImplyLeading: false,
bottom: PreferredSize(
preferredSize: Size.fromHeight(Platform.isIOS ? -12 : -6),
child: SizedBox(
height: 0,
),
),
flexibleSpace: FlexibleSpaceBar(
background: needpic
? CachedNetworkImage(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment