Skip to content

Commit

Permalink
Merge pull request #613 from julien4215/game-phase-vertical-text
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce authored Mar 31, 2024
2 parents 8691ecc + b8121e3 commit 46eb47f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
14 changes: 11 additions & 3 deletions lib/src/view/analysis/analysis_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -847,8 +847,6 @@ class ServerAnalysisSummary extends ConsumerWidget {
child: WaitingForServerAnalysis(),
),
AcplChart(options),
// may be removed if game phases text is displayed vertically instead of horizontally
const SizedBox(height: 10.0),
Center(
child: SizedBox(
width: math.min(MediaQuery.sizeOf(context).width, 500),
Expand Down Expand Up @@ -1140,8 +1138,18 @@ class AcplChart extends ConsumerWidget {
color: const Color(0xFF707070),
strokeWidth: 0.5,
label: VerticalLineLabel(
style: const TextStyle(fontSize: 10),
style: TextStyle(
fontSize: 10,
color: Theme.of(context)
.textTheme
.labelMedium
?.color
?.withOpacity(0.3),
),
labelResolver: (line) => label,
padding: const EdgeInsets.only(right: 1),
alignment: Alignment.topRight,
direction: LabelDirection.vertical,
show: true,
),
);
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -485,10 +485,10 @@ packages:
dependency: "direct main"
description:
name: fl_chart
sha256: "00b74ae680df6b1135bdbea00a7d1fc072a9180b7c3f3702e4b19a9943f5ed7d"
sha256: "2b7c1f5d867da9a054661641c8f499c55c47c39acccb97b3bc673f5fa9a39e74"
url: "https://pub.dev"
source: hosted
version: "0.66.2"
version: "0.67.0"
flutter:
dependency: "direct main"
description: flutter
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies:
firebase_core: ^2.15.0
firebase_crashlytics: ^3.3.4
firebase_messaging: ^14.7.8
fl_chart: ^0.66.0
fl_chart: ^0.67.0
flutter:
sdk: flutter
flutter_appauth: ^6.0.0
Expand Down

0 comments on commit 46eb47f

Please sign in to comment.