Cant join team if in team Profile page resets properly Post button spam no longer leads to crash due to duplicate calls Housekeeping: Made some name changes moved homescreenpages from layout -> homeFeed Deleted 2 unused classes, authService.dart and old loginPage.dart then renamed startPage.dart -> loginPage.dart Set up openApi on backend and added URL in Service classes
65 lines
1.9 KiB
Dart
65 lines
1.9 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../services/googleAuthService.dart';
|
|
|
|
class ProfilePageAdmin extends StatelessWidget {
|
|
const ProfilePageAdmin({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: const Color(0xFF212121),
|
|
appBar: AppBar(
|
|
backgroundColor: const Color(0xFF212121),
|
|
elevation: 0,
|
|
iconTheme: const IconThemeData(color: Color(0xFFDAA520)),
|
|
title: const Text('Profil', style: TextStyle(color: Color(0xFFDAA520))),
|
|
actions: [
|
|
IconButton(
|
|
icon: const Icon(Icons.logout, color: Color(0xFFDAA520)),
|
|
tooltip: 'Logga ut',
|
|
onPressed: () async {
|
|
await GoogleAuthService.logout(context);
|
|
},
|
|
),
|
|
],
|
|
),
|
|
body: SafeArea(
|
|
child: Center(
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: [
|
|
CircleAvatar(
|
|
radius: 50,
|
|
backgroundColor: Colors.grey[700],
|
|
child: Icon(Icons.person, size: 50, color: Colors.grey[300]),
|
|
),
|
|
const SizedBox(height: 20),
|
|
const Text(
|
|
'Admin',
|
|
style: TextStyle(fontSize: 24, color: Color(0xFFDAA520)),
|
|
),
|
|
const SizedBox(height: 20),
|
|
Container(
|
|
padding: const EdgeInsets.all(10),
|
|
height: 150,
|
|
width: MediaQuery.of(context).size.width * 0.8,
|
|
decoration: BoxDecoration(
|
|
color: Colors.grey[800],
|
|
borderRadius: BorderRadius.circular(12),
|
|
),
|
|
child: const Center(
|
|
child: Text(
|
|
'Admin-namn',
|
|
style: TextStyle(color: Colors.white),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|