Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product question #1271

Closed
wants to merge 9 commits into from
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class _KnowledgePanelPageTemplateState
return Text('Fatal Error: ${snapshot.error}');
}
if (snapshot.connectionState != ConnectionState.done) {
return const CircularProgressIndicator();
return const Center(child: CircularProgressIndicator());
}
final Widget knowledgePanelWidget =
const KnowledgePanelsBuilder().buildSingle(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class _PreferencesPageState extends State<PreferencesPage> {
return Text('Fatal Error: ${snapshot.error}');
}
if (snapshot.connectionState != ConnectionState.done) {
return const CircularProgressIndicator();
return const Center(child: CircularProgressIndicator());
}
return _Helper(_product);
},
Expand Down
11 changes: 9 additions & 2 deletions packages/smooth_app/lib/pages/product/summary_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ class _SummaryCardState extends State<SummaryCard> {
if (_productQuestions == null) {
return EMPTY_WIDGET;
}

return FutureBuilder<List<RobotoffQuestion>>(
future: _productQuestions,
builder: (
Expand Down Expand Up @@ -474,10 +475,16 @@ class _SummaryCardState extends State<SummaryCard> {
child: Column(
children: <Widget>[
// TODO(jasmeet): Use Material icon or SVG (after consulting UX).
Text('🏅 ${appLocalizations.tap_to_answer}'),
Text(
'🏅 ${appLocalizations.tap_to_answer}',
style: const TextStyle(color: Colors.black),
),
Container(
padding: const EdgeInsets.only(top: SMALL_SPACE),
child: Text(appLocalizations.contribute_to_get_rewards),
child: Text(
appLocalizations.contribute_to_get_rewards,
style: const TextStyle(color: Colors.black),
),
),
],
),
Expand Down