2023-02-17 13:47:52 +01:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:smoke_cess_app/service/settings_service.dart';
|
|
|
|
|
|
|
|
class SettingsPage extends StatelessWidget {
|
|
|
|
SettingsPage({super.key});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Center(
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
const Text('Hier taucht die Kamera zum Scannen auf'),
|
|
|
|
const SizedBox(height: 30),
|
|
|
|
ElevatedButton(
|
|
|
|
style: ElevatedButton.styleFrom(
|
|
|
|
textStyle: const TextStyle(fontSize: 20)),
|
|
|
|
onPressed: () {
|
2023-02-19 14:24:39 +01:00
|
|
|
loadSettings();
|
2023-02-17 13:47:52 +01:00
|
|
|
},
|
|
|
|
child: const Text('Read JSON'),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|