Strings quase feitas

This commit is contained in:
2026-03-18 16:20:18 +00:00
parent 7f80ed47f3
commit 6322e8d798
8 changed files with 324 additions and 228 deletions

View File

@@ -77,7 +77,7 @@ class _BluetoothConnectionScreenState extends State<BluetoothConnectionScreen> {
} else {
if (mounted) {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
SnackBar(
content: Text(AppStrings.permissionsDenied),
behavior: SnackBarBehavior.floating,
),
@@ -93,19 +93,19 @@ class _BluetoothConnectionScreenState extends State<BluetoothConnectionScreen> {
showDialog(
context: context,
builder: (context) => AlertDialog(
title: const Text("Permissões Necessárias"),
content: const Text("As permissões de Bluetooth foram negadas permanentemente. Por favor, habilite-as nas configurações do sistema para continuar."),
title: Text(AppStrings.permissionsNeeded),
content: Text(AppStrings.permissionsDeniedPermanent),
actions: [
TextButton(
onPressed: () => Navigator.pop(context),
child: const Text("CANCELAR"),
child: Text(AppStrings.btnCancel),
),
TextButton(
onPressed: () {
openAppSettings();
Navigator.pop(context);
},
child: const Text("CONFIGURAÇÕES"),
child: Text(AppStrings.settingsTitle),
),
],
),
@@ -117,7 +117,7 @@ class _BluetoothConnectionScreenState extends State<BluetoothConnectionScreen> {
if (await FlutterBluePlus.adapterState.first != BluetoothAdapterState.on) {
if (mounted) {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
SnackBar(
content: Text(AppStrings.turnOnBluetooth),
behavior: SnackBarBehavior.floating,
),
@@ -174,7 +174,7 @@ class _BluetoothConnectionScreenState extends State<BluetoothConnectionScreen> {
});
FlutterBluePlus.stopScan();
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
SnackBar(
content: Text(AppStrings.connectedSuccess),
backgroundColor: AppColors.success,
behavior: SnackBarBehavior.floating,
@@ -208,9 +208,9 @@ class _BluetoothConnectionScreenState extends State<BluetoothConnectionScreen> {
return Scaffold(
backgroundColor: AppColors.background,
appBar: AppBar(
title: const Text(
title: Text(
AppStrings.bluetoothTitle,
style: TextStyle(
style: const TextStyle(
fontWeight: FontWeight.w900,
letterSpacing: 2,
color: Colors.white,