This commit is contained in:
toly
2023-12-12 09:40:24 +08:00
parent 25e51d789f
commit ab2778a22b
51 changed files with 3453 additions and 129 deletions

View File

@@ -1,37 +1,34 @@
import 'package:flutter/material.dart';
import '../../../components/toly_ui/decoration/title.dart';
class TitleGroup extends StatelessWidget {
final String title;
const TitleGroup({super.key, required this.title});
final Color? color;
final Color? lineColor;
const TitleGroup({super.key, required this.title, this.color=const Color(0xff333333), this.lineColor});
@override
Widget build(BuildContext context) {
return Column(
children: [
const SizedBox(
height: 16,
),
Row(
children: [
const SizedBox(
width: 16,
),
CircleAvatar(
radius: 6,
),
const SizedBox(
width: 16,
),
Text(
return Padding(
padding: EdgeInsets.symmetric(vertical: 16),
child: Center(
child: TolyTitle(
color: color,
lineColor: lineColor,
child:
Container(
padding: EdgeInsets.symmetric(horizontal: 24,vertical: 10),
child: Text(
title,
style: TextStyle(fontSize: 14, fontWeight: FontWeight.bold),
style: TextStyle(fontSize: 14,
color: Colors.white,
fontWeight: FontWeight.bold
),
),
],
),
const SizedBox(
height: 16,
),
],
), ),
),
);
}
}