Added Profile widget to Settings page

This commit is contained in:
2026-03-06 07:54:57 +01:00
parent 34071020cd
commit d30941e609
2 changed files with 55 additions and 5 deletions

View File

@@ -0,0 +1,44 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:frontend_splatournament_manager/state_provider.dart';
import 'package:provider/provider.dart';
class ProfileWidget extends StatefulWidget {
const ProfileWidget({super.key});
@override
State<ProfileWidget> createState() => _ProfileWidgetState();
}
class _ProfileWidgetState extends State<ProfileWidget> {
final TextEditingController teamController = TextEditingController(
text: 'Team Name',
);
@override
Widget build(BuildContext context) {
return Consumer<StateProvider>(
builder: (context, provider, child) {
return Column(
children: [
SizedBox(
height: 128,
width: 128,
child: CircleAvatar(
backgroundImage: NetworkImage(
"https://i.postimg.cc/0jqKB6mS/Profile-Image.png",
),
),
),
SizedBox(height: 8),
Text("Name", style: TextStyle(fontSize: 36)),
Container(
margin: EdgeInsets.fromLTRB(48, 8, 48, 0),
child: TextFormField(controller: teamController),
),
],
);
},
);
}
}