flutter - How to design custom labels for flutter tabs using box decoration?
问题描述
I want to know how to make the following tabs UI in flutter using box decoration?
So far I have achieved following UI with the help of applying shape decoration to indicator using the following code
indicator: ShapeDecoration(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.only(
topLeft: const Radius.circular(10.0),
topRight: const Radius.circular(10.0)),
),
gradient: LinearGradient(
begin: Alignment(0.5, 0),
end: Alignment(0.5, 1),
colors: [
const Color(0xff494949),
const Color(0xff3a3a3a)
])),
),
解决方案
推荐阅读
- mysql - SQL 按原始顺序分区
- c# - InkCanvas 在按钮浮出控件中无法按预期工作
- python - Django Admin Million Data - 管理页面需要很长时间才能打开
- reactjs - 单击时隐藏 Ionic React 按钮
- google-cloud-platform - Google Speech API 的最佳采样率是多少?有 Google 员工或专家可以发表评论吗?
- python - 如何使用烧瓶有效地将大型 csv 文件加载到 html 表中?
- sql - Microsoft Access - 如何将数据导入现有表并更新数据
- performance - 每次点击都进行 API 调用是个好主意吗?
- microsoft-graph-api - Teams Graph API,从每个 Teams 频道检索文件
- android - 如何使用 Testcafe 测试推送通知