Header constructor
Header({
- required String title,
- String? subtitle,
- dynamic object,
- VoidCallback? onTap,
- double height = 40,
- Color backgroundColor = Colors.white,
- Color color = const Color(0xFF292B2F),
- TextStyle textStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.w400, fontSize: 13),
- TextStyle subtitleStyle = const TextStyle(color: Color(0xFFA1A1A0), fontWeight: FontWeight.w300, fontSize: 10),
Implementation
Header({
required this.title,
this.subtitle,
this.object,
this.onTap,
this.height: 40,
this.backgroundColor: Colors.white,
this.color: const Color(0xFF292B2F),
this.textStyle: const TextStyle(
color: Colors.black, fontWeight: FontWeight.w400, fontSize: 13),
this.subtitleStyle: const TextStyle(
color: Color(0xFFA1A1A0), fontWeight: FontWeight.w300, fontSize: 10),
});