[英]How to make my sliver background circle in flutter
我正在編寫一個個人資料頁面,並希望在我的應用程序中使用條子來獲得一些眼睛。 我想要它的圓形
我的代碼
SliverAppBar(
expandedHeight: 200.0,
floating: true,
pinned: true,
snap: true,
primary: false,
backgroundColor: Colors.white,
flexibleSpace: FlexibleSpaceBar(
centerTitle: true,
title: Text(empName,
style: TextStyle(
color: Colors.black,
fontSize: 16.0,
)),
background: Image.network('www.sample.com/profile.png',
fit: BoxFit.cover,
)
),
),
在后台使用CircleAvatar 。
CircleAvatar(
radius: 40.0,
backgroundImage: NetworkImage('www.sample.com/profile.png'),
)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.