Added: user settings screen, Several changes in main.lib
This commit is contained in:
@ -23,7 +23,6 @@ class _AddScreenState extends State<AddScreen> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: Text('Add Entry')),
|
||||
body: Padding(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: Form(
|
||||
|
@ -3,9 +3,6 @@ import 'package:flutter/material.dart';
|
||||
class HistoryScreen extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: Text('History')),
|
||||
body: Center(child: Text('History Screen Content')),
|
||||
);
|
||||
return Scaffold(body: Center(child: Text('History Screen Content')));
|
||||
}
|
||||
}
|
||||
|
@ -5,7 +5,6 @@ class HomeScreen extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: Text('Fuel Stats')),
|
||||
body: SingleChildScrollView(
|
||||
child: Column(
|
||||
children: [
|
||||
|
32
lib/screens/user_settings.dart
Normal file
32
lib/screens/user_settings.dart
Normal file
@ -0,0 +1,32 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class UserSettingsScreen extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: Text('User settings')),
|
||||
body: Center(
|
||||
child: Column(
|
||||
spacing: 20.0,
|
||||
children: [
|
||||
const Text(
|
||||
"Test User",
|
||||
style: TextStyle(fontSize: 32, fontWeight: FontWeight.bold),
|
||||
),
|
||||
ElevatedButton.icon(
|
||||
onPressed: () {
|
||||
// TODO: Add sign-out logic here
|
||||
},
|
||||
icon: Icon(Icons.logout),
|
||||
label: Text("Sign Out"),
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: Colors.redAccent,
|
||||
foregroundColor: Colors.white,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
@ -79,7 +79,6 @@ class _VehiclesScreenState extends State<VehiclesScreen> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: Text('Vehicles')),
|
||||
body:
|
||||
_vehicles.isEmpty
|
||||
? Center(child: Text('No vehicles added yet.'))
|
||||
|
Reference in New Issue
Block a user