1
This commit is contained in:
@@ -12,24 +12,28 @@ class CoachMessage extends StatefulWidget {
|
||||
class _CoachMessageState extends State<CoachMessage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var store = context.read<PlanDetailStore>();
|
||||
if (store.planContent.isEmpty) {
|
||||
return SizedBox();
|
||||
}
|
||||
return Container(
|
||||
padding: EdgeInsets.all(20),
|
||||
child: Column(
|
||||
children: [
|
||||
Text(
|
||||
"Organizing your plan…",
|
||||
style: Theme.of(context).textTheme.bodyMedium,
|
||||
return Selector<PlanDetailStore, String>(
|
||||
selector: (_, store) => store.planContent,
|
||||
builder: (context, planContent, _) {
|
||||
if (planContent.isEmpty) {
|
||||
return SizedBox();
|
||||
}
|
||||
return Container(
|
||||
padding: EdgeInsets.all(20),
|
||||
child: Column(
|
||||
children: [
|
||||
Text(
|
||||
"Organizing your plan…",
|
||||
style: Theme.of(context).textTheme.bodyMedium,
|
||||
),
|
||||
Text(
|
||||
'"$planContent"',
|
||||
style: Theme.of(context).textTheme.titleMedium,
|
||||
),
|
||||
],
|
||||
),
|
||||
Text(
|
||||
'"${store.planContent}"',
|
||||
style: Theme.of(context).textTheme.titleMedium,
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user