Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added flutter/studentconnect/assets/Frame 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added flutter/studentconnect/assets/part.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
145 changes: 145 additions & 0 deletions flutter/studentconnect/lib/app/modules/auth/views/Addevent.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
import 'package:flutter/material.dart';

void main() {
runApp(MyApp());
}

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
primaryColor: Color(0xffD5F2E8),
scaffoldBackgroundColor: Color(0xffD5F2E8),
),
home: MyHomePage(),
);
}
}

class MyHomePage extends StatelessWidget {
final TextEditingController productNameController = TextEditingController();
final TextEditingController productTypeController = TextEditingController();
final TextEditingController phoneNumberController = TextEditingController();

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(
'Events',
style: TextStyle(
color: Colors.black,
),
),
centerTitle: true,
elevation: 0,
backgroundColor: const Color.fromARGB(255, 222, 242, 222),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
width: 300,
child: TextFormField(
controller: productNameController,
decoration: InputDecoration(
labelText: 'Event Name',
hintText: 'Enter Enter name',
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(5),
),
filled: true,
fillColor: Colors.white,
),
),
),
SizedBox(height: 16),
Container(
width: 300, // Adjust the width as needed
child: TextFormField(
controller: productTypeController,
decoration: InputDecoration(
labelText: 'Event Type',
hintText: 'Enter Event type', // Placeholder text
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(5),
),
filled: true,
fillColor: Colors.white, // Text field color
),
),
),
SizedBox(height: 16),
Container(
width: 300, // Adjust the width as needed
child: TextFormField(
controller: phoneNumberController,
decoration: InputDecoration(
labelText: 'Phone Number (WhatsApp)',
hintText: 'Enter phone number', // Placeholder text
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(5),
),
filled: true,
fillColor: Colors.white, // Text field color
),
),
),
SizedBox(height: 32),
GestureDetector(
onTap: () {},
child: Container(
width: 300, // Adjust the width as needed
height: 55,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(5),
color: Colors.white,
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'Upload Event Photo',
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.w400,
),
),
Icon(
Icons.upload,
size: 24,
),
],
),
),
),
SizedBox(height: 16),
GestureDetector(
onTap: () {},
child: Container(
width: 196,
height: 55,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: Color(0xff2d4890),
),
child: Center(
child: Text(
'Add Event',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.w600,
color: Colors.white,
),
),
),
),
),
],
),
),
);
}
}
Loading