import 'package:flutter/material.dart'; /// create by 张风捷特烈 on 2020/4/27 /// contact me by email 1981462002@qq.com /// 说明: // { // "widgetId": 20, // "priority": 1, // "name": "GridTileBar的基本表现如下", // "subtitle": "【value】 : 条目对象 【T】\n" // "【leading】: 左侧组件 【Widget】\n" // "【trailing】: 尾组件 【Widget】\n" // "【title】: 中间上组件 【Widget】\n" // "【subtitle】: 中间下组件 【Widget】\n" // "【backgroundColor】: 背景色 【Color】", // } class CustomGridTileBar extends StatelessWidget { @override Widget build(BuildContext context) { return GridTileBar( backgroundColor: Colors.blue.withAlpha(120), trailing: Icon( Icons.star, color: Colors.red, ), leading: CircleAvatar( backgroundImage: AssetImage("assets/images/wy_200x300.webp"), ), title: Text("百里·巫缨"), subtitle: Text("倾国必倾城"), ); } }