Updated graph padding
This commit is contained in:
@@ -30,29 +30,28 @@ class _GraphViewState extends State<GraphView> {
|
|||||||
middle: Text(AppLocalizations.of(context).scoring_history),
|
middle: Text(AppLocalizations.of(context).scoring_history),
|
||||||
previousPageTitle: AppLocalizations.of(context).back,
|
previousPageTitle: AppLocalizations.of(context).back,
|
||||||
),
|
),
|
||||||
child: Visibility(
|
child: SafeArea(
|
||||||
visible: widget.gameSession.roundNumber > 1 ||
|
child: Visibility(
|
||||||
widget.gameSession.isGameFinished,
|
visible: widget.gameSession.roundNumber > 1 ||
|
||||||
replacement: Column(
|
widget.gameSession.isGameFinished,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
replacement: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
const Center(
|
children: [
|
||||||
child: Icon(CupertinoIcons.chart_bar_alt_fill, size: 60),
|
const Center(
|
||||||
),
|
child: Icon(CupertinoIcons.chart_bar_alt_fill, size: 60),
|
||||||
const SizedBox(height: 10),
|
|
||||||
Padding(
|
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 40),
|
|
||||||
child: Text(
|
|
||||||
AppLocalizations.of(context).empty_graph_text,
|
|
||||||
textAlign: TextAlign.center,
|
|
||||||
style: const TextStyle(fontSize: 16),
|
|
||||||
),
|
),
|
||||||
),
|
const SizedBox(height: 10),
|
||||||
],
|
Padding(
|
||||||
),
|
padding: const EdgeInsets.symmetric(horizontal: 40),
|
||||||
child: Padding(
|
child: Text(
|
||||||
padding: const EdgeInsets.fromLTRB(0, 100, 0, 0),
|
AppLocalizations.of(context).empty_graph_text,
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
style: const TextStyle(fontSize: 16),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
child: SfCartesianChart(
|
child: SfCartesianChart(
|
||||||
enableAxisAnimation: true,
|
enableAxisAnimation: true,
|
||||||
legend: const Legend(
|
legend: const Legend(
|
||||||
|
|||||||
Reference in New Issue
Block a user