From 8f4fa31e1a886137c525db11e47b5a3617631246 Mon Sep 17 00:00:00 2001 From: Omar Selo Date: Wed, 5 Jul 2023 14:39:33 +0300 Subject: [PATCH] Capitalize stage titles --- frontend/lib/ui/dashboard/dashboard_body.dart | 3 ++- frontend/pubspec.lock | 16 ++++++++++++++++ frontend/pubspec.yaml | 1 + 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/frontend/lib/ui/dashboard/dashboard_body.dart b/frontend/lib/ui/dashboard/dashboard_body.dart index a135d2fd..b87ef365 100644 --- a/frontend/lib/ui/dashboard/dashboard_body.dart +++ b/frontend/lib/ui/dashboard/dashboard_body.dart @@ -1,3 +1,4 @@ +import 'package:dartx/dartx.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:intersperse/intersperse.dart'; @@ -47,7 +48,7 @@ class _StageColumn extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - stage.name, + stage.name.capitalize(), style: Theme.of(context).textTheme.headlineSmall, ), const SizedBox(height: Spacing.level4), diff --git a/frontend/pubspec.lock b/frontend/pubspec.lock index f3616dbe..06c61e50 100644 --- a/frontend/pubspec.lock +++ b/frontend/pubspec.lock @@ -217,6 +217,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.3.1" + dartx: + dependency: "direct main" + description: + name: dartx + sha256: "45d7176701f16c5a5e00a4798791c1964bc231491b879369c818dd9a9c764871" + url: "https://pub.dev" + source: hosted + version: "1.1.0" dependency_validator: dependency: "direct dev" description: @@ -677,6 +685,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.5.1" + time: + dependency: transitive + description: + name: time + sha256: "83427e11d9072e038364a5e4da559e85869b227cf699a541be0da74f14140124" + url: "https://pub.dev" + source: hosted + version: "2.1.3" timing: dependency: transitive description: diff --git a/frontend/pubspec.yaml b/frontend/pubspec.yaml index 7f8dbf66..77d3e198 100644 --- a/frontend/pubspec.yaml +++ b/frontend/pubspec.yaml @@ -5,6 +5,7 @@ version: 1.0.0+1 environment: sdk: ">=2.19.0-255.2.beta <3.0.0" dependencies: + dartx: ^1.1.0 dio: ^5.1.2 flutter: sdk: flutter