Strings quase feitas
This commit is contained in:
@@ -192,17 +192,17 @@ class _GoogleMapScreenState extends State<GoogleMapScreen> {
|
||||
builder: (context) => AlertDialog(
|
||||
backgroundColor: AppColors.backgroundGrey,
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(25)),
|
||||
title: const Text("Iniciar Corrida?", style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold)),
|
||||
content: const Text("Deseja começar o monitoramento agora?", style: TextStyle(color: Colors.white70)),
|
||||
title: Text(AppStrings.startRunQuestion, style: const TextStyle(color: Colors.white, fontWeight: FontWeight.bold)),
|
||||
content: Text(AppStrings.startRunDescription, style: const TextStyle(color: Colors.white70)),
|
||||
actions: [
|
||||
TextButton(onPressed: () => Navigator.pop(context), child: const Text(AppStrings.cancel, style: TextStyle(color: Colors.white54))),
|
||||
TextButton(onPressed: () => Navigator.pop(context), child: Text(AppStrings.cancel, style: const TextStyle(color: Colors.white54))),
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
_startCountdown();
|
||||
},
|
||||
style: ElevatedButton.styleFrom(backgroundColor: AppColors.coral, shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(15))),
|
||||
child: const Text(AppStrings.yes, style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold)),
|
||||
child: Text(AppStrings.yes, style: const TextStyle(color: Colors.white, fontWeight: FontWeight.bold)),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -256,7 +256,7 @@ class _GoogleMapScreenState extends State<GoogleMapScreen> {
|
||||
showGeneralDialog(
|
||||
context: context,
|
||||
barrierDismissible: false,
|
||||
barrierLabel: "Resultados",
|
||||
barrierLabel: AppStrings.results,
|
||||
pageBuilder: (context, anim1, anim2) => const SizedBox(),
|
||||
transitionBuilder: (context, anim1, anim2, child) {
|
||||
return FadeTransition(
|
||||
@@ -279,7 +279,7 @@ class _GoogleMapScreenState extends State<GoogleMapScreen> {
|
||||
child: const Icon(Icons.emoji_events_rounded, color: Colors.white, size: 40),
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
const Text(AppStrings.runFinished, style: TextStyle(color: Colors.white, fontSize: 24, fontWeight: FontWeight.w900, letterSpacing: 1)),
|
||||
Text(AppStrings.runFinished, style: const TextStyle(color: Colors.white, fontSize: 24, fontWeight: FontWeight.w900, letterSpacing: 1)),
|
||||
const SizedBox(height: 30),
|
||||
Container(
|
||||
height: 180,
|
||||
@@ -317,7 +317,7 @@ class _GoogleMapScreenState extends State<GoogleMapScreen> {
|
||||
const Divider(color: Colors.white10, height: 25),
|
||||
_buildResultRow(AppStrings.totalTime, _formatTime(finalTime)),
|
||||
const Divider(color: Colors.white10, height: 25),
|
||||
_buildResultRow("VELOCIDADE MÁX", "${finalMaxSpeed.toStringAsFixed(1)} ${AppStrings.kmhUnit}"),
|
||||
_buildResultRow(AppStrings.maxSpeed, "${finalMaxSpeed.toStringAsFixed(1)} ${AppStrings.kmhUnit}"),
|
||||
const SizedBox(height: 35),
|
||||
SizedBox(
|
||||
width: double.infinity,
|
||||
@@ -459,7 +459,7 @@ class _GoogleMapScreenState extends State<GoogleMapScreen> {
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const Text("PREPARAR", style: TextStyle(color: Colors.white54, fontSize: 24, fontWeight: FontWeight.bold, letterSpacing: 5)),
|
||||
Text(AppStrings.prepare, style: const TextStyle(color: Colors.white54, fontSize: 24, fontWeight: FontWeight.bold, letterSpacing: 5)),
|
||||
const SizedBox(height: 20),
|
||||
Text("$_countdownValue", style: const TextStyle(color: AppColors.coral, fontSize: 160, fontWeight: FontWeight.w900)),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user