Tela conexão bluetooth
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'constants/app_colors.dart';
|
||||
import 'screens/google_map_screen.dart';
|
||||
import 'bluetooth_screen.dart';
|
||||
|
||||
void main() {
|
||||
// O ponto de entrada do aplicativo.
|
||||
@@ -260,11 +261,10 @@ class _RunningScreenState extends State<RunningScreen>
|
||||
right: 30,
|
||||
child: GestureDetector(
|
||||
onTap: () {
|
||||
// Exibe uma mensagem rápida quando clicado.
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(
|
||||
content: Text('Bluetooth clicado!'),
|
||||
duration: Duration(seconds: 1),
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => const BluetoothScreen(),
|
||||
),
|
||||
);
|
||||
},
|
||||
@@ -355,7 +355,7 @@ class _RunningScreenState extends State<RunningScreen>
|
||||
? CircleAvatar(
|
||||
radius: 20,
|
||||
backgroundColor: Colors.orange,
|
||||
child: CircleAvatar(
|
||||
child: const CircleAvatar(
|
||||
radius: 18,
|
||||
backgroundImage: NetworkImage(
|
||||
'https://i.pravatar.cc/150?u=1',
|
||||
|
||||
@@ -22,6 +22,7 @@ class _GoogleMapScreenState extends State<GoogleMapScreen> {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Mapa da Corrida'),
|
||||
foregroundColor: Colors.white,
|
||||
backgroundColor: Colors.black, // or your AppColors.background
|
||||
elevation: 0,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user