Added Profile widget to Settings page
This commit is contained in:
@@ -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),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user