time_planner
time_planner copied to clipboard
Time Planner Title
Hello
Could you fix the Time Planner Title To Accept Widget rather than Text `class TimePlannerTitle extends StatelessWidget { /// Title of each day, typically is name of the day for example sunday /// /// but you can set any things here final Widget title;
/// Text style for title final TextStyle? titleStyle;
/// Date of each day like 03/21/2021 but you can leave it empty or write other things final Widget subTitle;
/// Text style for date text final TextStyle? dateStyle;
/// Title widget for time planner const TimePlannerTitle({ Key? key, required this.title, required this.subTitle, this.titleStyle, this.dateStyle, }) : super(key: key);
@override Widget build(BuildContext context) { return SizedBox( height: 140, width: config.cellWidth!.toDouble(), child: Center( child: Column( crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ title, const SizedBox( height: 3, ), subTitle, ], ), ), ); } }`
Example
TimePlannerTitle( title: Container( height: 100, width: 100, decoration: const BoxDecoration( shape: BoxShape.circle, image: DecorationImage( fit: BoxFit.cover, image: NetworkImage("https://prod-images.tcm.com/Master-Profile-Images/LeonardoDiCaprio.jpg", scale: 1), ), ),
), subTitle: const Text( "Leonardo Dicaprio", textAlign: TextAlign.center, ), ),
Hi, Unfortunately it wasn't possible right now. But maybe in future versions I will do that.