Commit 3a228a79 authored by Uditha Prabhasha 's avatar Uditha Prabhasha

update, bottom nav updated

parent 58bc9a1b
No preview for this file type
// Flutter web plugin registrant file.
//
// Generated file. Do not edit.
//
// @dart = 2.13
// ignore_for_file: type=lint
import 'package:cloud_firestore_web/cloud_firestore_web.dart';
import 'package:firebase_auth_web/firebase_auth_web.dart';
import 'package:firebase_core_web/firebase_core_web.dart';
import 'package:image_picker_for_web/image_picker_for_web.dart';
import 'package:rive_common/rive_web.dart';
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
void registerPlugins([final Registrar? pluginRegistrar]) {
final Registrar registrar = pluginRegistrar ?? webPluginRegistrar;
FirebaseFirestoreWeb.registerWith(registrar);
FirebaseAuthWeb.registerWith(registrar);
FirebaseCoreWeb.registerWith(registrar);
ImagePickerPlugin.registerWith(registrar);
RivePlugin.registerWith(registrar);
registrar.registerMessageHandler();
}
This diff is collapsed.
This diff is collapsed.
3.10.1
\ No newline at end of file
# This is a generated file; do not edit or check into version control.
cloud_firestore=/Users/avishkanew/.pub-cache/hosted/pub.dev/cloud_firestore-4.13.6/
cloud_firestore_web=/Users/avishkanew/.pub-cache/hosted/pub.dev/cloud_firestore_web-3.8.10/
file_selector_linux=/Users/avishkanew/.pub-cache/hosted/pub.dev/file_selector_linux-0.9.2+1/
file_selector_macos=/Users/avishkanew/.pub-cache/hosted/pub.dev/file_selector_macos-0.9.3+3/
file_selector_windows=/Users/avishkanew/.pub-cache/hosted/pub.dev/file_selector_windows-0.9.3+1/
firebase_auth=/Users/avishkanew/.pub-cache/hosted/pub.dev/firebase_auth-4.15.3/
firebase_auth_web=/Users/avishkanew/.pub-cache/hosted/pub.dev/firebase_auth_web-5.8.12/
firebase_core=/Users/avishkanew/.pub-cache/hosted/pub.dev/firebase_core-2.24.2/
firebase_core_web=/Users/avishkanew/.pub-cache/hosted/pub.dev/firebase_core_web-2.10.0/
flutter_plugin_android_lifecycle=/Users/avishkanew/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.17/
image_picker=/Users/avishkanew/.pub-cache/hosted/pub.dev/image_picker-1.0.7/
image_picker_android=/Users/avishkanew/.pub-cache/hosted/pub.dev/image_picker_android-0.8.9+3/
image_picker_for_web=/Users/avishkanew/.pub-cache/hosted/pub.dev/image_picker_for_web-2.2.0/
image_picker_ios=/Users/avishkanew/.pub-cache/hosted/pub.dev/image_picker_ios-0.8.9/
image_picker_linux=/Users/avishkanew/.pub-cache/hosted/pub.dev/image_picker_linux-0.2.1+1/
image_picker_macos=/Users/avishkanew/.pub-cache/hosted/pub.dev/image_picker_macos-0.2.1+1/
image_picker_windows=/Users/avishkanew/.pub-cache/hosted/pub.dev/image_picker_windows-0.2.1+1/
rive_common=/Users/avishkanew/.pub-cache/hosted/pub.dev/rive_common-0.2.7/
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"cloud_firestore","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/cloud_firestore-4.13.6/","native_build":true,"dependencies":["firebase_core"]},{"name":"firebase_auth","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/firebase_auth-4.15.3/","native_build":true,"dependencies":["firebase_core"]},{"name":"firebase_core","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/firebase_core-2.24.2/","native_build":true,"dependencies":[]},{"name":"image_picker_ios","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/image_picker_ios-0.8.9/","native_build":true,"dependencies":[]},{"name":"rive_common","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/rive_common-0.2.7/","native_build":true,"dependencies":[]}],"android":[{"name":"cloud_firestore","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/cloud_firestore-4.13.6/","native_build":true,"dependencies":["firebase_core"]},{"name":"firebase_auth","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/firebase_auth-4.15.3/","native_build":true,"dependencies":["firebase_core"]},{"name":"firebase_core","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/firebase_core-2.24.2/","native_build":true,"dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.17/","native_build":true,"dependencies":[]},{"name":"image_picker_android","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/image_picker_android-0.8.9+3/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"rive_common","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/rive_common-0.2.7/","native_build":true,"dependencies":[]}],"macos":[{"name":"cloud_firestore","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/cloud_firestore-4.13.6/","native_build":true,"dependencies":["firebase_core"]},{"name":"file_selector_macos","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/file_selector_macos-0.9.3+3/","native_build":true,"dependencies":[]},{"name":"firebase_auth","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/firebase_auth-4.15.3/","native_build":true,"dependencies":["firebase_core"]},{"name":"firebase_core","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/firebase_core-2.24.2/","native_build":true,"dependencies":[]},{"name":"image_picker_macos","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/image_picker_macos-0.2.1+1/","native_build":false,"dependencies":["file_selector_macos"]},{"name":"rive_common","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/rive_common-0.2.7/","native_build":true,"dependencies":[]}],"linux":[{"name":"file_selector_linux","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/file_selector_linux-0.9.2+1/","native_build":true,"dependencies":[]},{"name":"image_picker_linux","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/image_picker_linux-0.2.1+1/","native_build":false,"dependencies":["file_selector_linux"]}],"windows":[{"name":"cloud_firestore","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/cloud_firestore-4.13.6/","native_build":true,"dependencies":["firebase_core"]},{"name":"file_selector_windows","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/file_selector_windows-0.9.3+1/","native_build":true,"dependencies":[]},{"name":"firebase_auth","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/firebase_auth-4.15.3/","native_build":true,"dependencies":["firebase_core"]},{"name":"firebase_core","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/firebase_core-2.24.2/","native_build":true,"dependencies":[]},{"name":"image_picker_windows","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/image_picker_windows-0.2.1+1/","native_build":false,"dependencies":["file_selector_windows"]},{"name":"rive_common","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/rive_common-0.2.7/","native_build":true,"dependencies":[]}],"web":[{"name":"cloud_firestore_web","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/cloud_firestore_web-3.8.10/","dependencies":["firebase_core_web"]},{"name":"firebase_auth_web","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/firebase_auth_web-5.8.12/","dependencies":["firebase_core_web"]},{"name":"firebase_core_web","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/firebase_core_web-2.10.0/","dependencies":[]},{"name":"image_picker_for_web","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/image_picker_for_web-2.2.0/","dependencies":[]},{"name":"rive_common","path":"/Users/avishkanew/.pub-cache/hosted/pub.dev/rive_common-0.2.7/","dependencies":[]}]},"dependencyGraph":[{"name":"cloud_firestore","dependencies":["cloud_firestore_web","firebase_core"]},{"name":"cloud_firestore_web","dependencies":["firebase_core","firebase_core_web"]},{"name":"file_selector_linux","dependencies":[]},{"name":"file_selector_macos","dependencies":[]},{"name":"file_selector_windows","dependencies":[]},{"name":"firebase_auth","dependencies":["firebase_auth_web","firebase_core"]},{"name":"firebase_auth_web","dependencies":["firebase_core","firebase_core_web"]},{"name":"firebase_core","dependencies":["firebase_core_web"]},{"name":"firebase_core_web","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"image_picker","dependencies":["image_picker_android","image_picker_for_web","image_picker_ios","image_picker_linux","image_picker_macos","image_picker_windows"]},{"name":"image_picker_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"image_picker_for_web","dependencies":[]},{"name":"image_picker_ios","dependencies":[]},{"name":"image_picker_linux","dependencies":["file_selector_linux"]},{"name":"image_picker_macos","dependencies":["file_selector_macos"]},{"name":"image_picker_windows","dependencies":["file_selector_windows"]},{"name":"rive_common","dependencies":[]}],"date_created":"2024-01-16 00:38:05.238148","version":"3.10.1"}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android" name="Android">
<configuration>
<option name="ALLOW_USER_CONFIGURATION" value="false" />
<option name="GEN_FOLDER_RELATIVE_PATH_APT" value="/gen" />
<option name="GEN_FOLDER_RELATIVE_PATH_AIDL" value="/gen" />
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/app/src/main/AndroidManifest.xml" />
<option name="RES_FOLDER_RELATIVE_PATH" value="/app/src/main/res" />
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/app/src/main/assets" />
<option name="LIBS_FOLDER_RELATIVE_PATH" value="/app/src/main/libs" />
<option name="PROGUARD_LOGS_FOLDER_RELATIVE_PATH" value="/app/src/main/proguard_logs" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/app/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/app/src/main/kotlin" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" generated="true" />
</content>
<orderEntry type="jdk" jdkName="Android API 29 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Flutter for Android" level="project" />
<orderEntry type="library" name="KotlinJavaRuntime" level="project" />
</component>
</module>
...@@ -768,6 +768,8 @@ PODS: ...@@ -768,6 +768,8 @@ PODS:
- gRPC-Core/Interface (= 1.49.1) - gRPC-Core/Interface (= 1.49.1)
- gRPC-Core/Interface (1.49.1) - gRPC-Core/Interface (1.49.1)
- GTMSessionFetcher/Core (3.2.0) - GTMSessionFetcher/Core (3.2.0)
- image_picker_ios (0.0.1):
- Flutter
- leveldb-library (1.22.2) - leveldb-library (1.22.2)
- nanopb (2.30909.1): - nanopb (2.30909.1):
- nanopb/decode (= 2.30909.1) - nanopb/decode (= 2.30909.1)
...@@ -784,6 +786,7 @@ DEPENDENCIES: ...@@ -784,6 +786,7 @@ DEPENDENCIES:
- firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) - firebase_auth (from `.symlinks/plugins/firebase_auth/ios`)
- firebase_core (from `.symlinks/plugins/firebase_core/ios`) - firebase_core (from `.symlinks/plugins/firebase_core/ios`)
- Flutter (from `Flutter`) - Flutter (from `Flutter`)
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
- rive_common (from `.symlinks/plugins/rive_common/ios`) - rive_common (from `.symlinks/plugins/rive_common/ios`)
SPEC REPOS: SPEC REPOS:
...@@ -817,6 +820,8 @@ EXTERNAL SOURCES: ...@@ -817,6 +820,8 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/firebase_core/ios" :path: ".symlinks/plugins/firebase_core/ios"
Flutter: Flutter:
:path: Flutter :path: Flutter
image_picker_ios:
:path: ".symlinks/plugins/image_picker_ios/ios"
rive_common: rive_common:
:path: ".symlinks/plugins/rive_common/ios" :path: ".symlinks/plugins/rive_common/ios"
...@@ -840,6 +845,7 @@ SPEC CHECKSUMS: ...@@ -840,6 +845,7 @@ SPEC CHECKSUMS:
"gRPC-C++": 2df8cba576898bdacd29f0266d5236fa0e26ba6a "gRPC-C++": 2df8cba576898bdacd29f0266d5236fa0e26ba6a
gRPC-Core: a21a60aefc08c68c247b439a9ef97174b0c54f96 gRPC-Core: a21a60aefc08c68c247b439a9ef97174b0c54f96
GTMSessionFetcher: 41b9ef0b4c08a6db4b7eb51a21ae5183ec99a2c8 GTMSessionFetcher: 41b9ef0b4c08a6db4b7eb51a21ae5183ec99a2c8
image_picker_ios: 4a8aadfbb6dc30ad5141a2ce3832af9214a705b5
leveldb-library: f03246171cce0484482ec291f88b6d563699ee06 leveldb-library: f03246171cce0484482ec291f88b6d563699ee06
nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5 nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5
PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4 PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4
......
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/lib" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/.idea" />
<excludeFolder url="file://$MODULE_DIR$/build" />
</content>
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Dart SDK" level="project" />
<orderEntry type="library" name="Flutter Plugins" level="project" />
<orderEntry type="library" name="Dart Packages" level="project" />
</component>
</module>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -2,15 +2,14 @@ import 'package:flutter/material.dart'; ...@@ -2,15 +2,14 @@ import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart'; import 'package:image_picker/image_picker.dart';
import 'dart:io'; import 'dart:io';
class AddStudentPage extends StatefulWidget {
class AddStudent extends StatefulWidget { const AddStudentPage({Key? key});
const AddStudent({Key? key});
@override @override
State<AddStudent> createState() => _AddStudentState(); State<AddStudentPage> createState() => _AddStudentState();
} }
class _AddStudentState extends State<AddStudent> { class _AddStudentState extends State<AddStudentPage> {
//Bio Part //Bio Part
TextEditingController _firstnameController = TextEditingController(); TextEditingController _firstnameController = TextEditingController();
TextEditingController _lastnameController = TextEditingController(); TextEditingController _lastnameController = TextEditingController();
...@@ -40,13 +39,9 @@ class _AddStudentState extends State<AddStudent> { ...@@ -40,13 +39,9 @@ class _AddStudentState extends State<AddStudent> {
TextEditingController _stateController = TextEditingController(); TextEditingController _stateController = TextEditingController();
//imagepicker //imagepicker
ImagePicker _imagePicker = ImagePicker(); ImagePicker _imagePicker = ImagePicker();
XFile? _selectedImage; XFile? _selectedImage;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
...@@ -54,6 +49,7 @@ class _AddStudentState extends State<AddStudent> { ...@@ -54,6 +49,7 @@ class _AddStudentState extends State<AddStudent> {
leading: IconButton( leading: IconButton(
icon: Icon(Icons.arrow_back), icon: Icon(Icons.arrow_back),
onPressed: () { onPressed: () {
// Handle back button press if needed
Navigator.pop(context); Navigator.pop(context);
}, },
), ),
...@@ -78,29 +74,25 @@ class _AddStudentState extends State<AddStudent> { ...@@ -78,29 +74,25 @@ class _AddStudentState extends State<AddStudent> {
padding: const EdgeInsets.all(10), padding: const EdgeInsets.all(10),
child: Column( child: Column(
mainAxisAlignment: mainAxisAlignment:
MainAxisAlignment.center, MainAxisAlignment.center, // Center the content vertically
children: [ children: [
GestureDetector(
onTap: () async {
GestureDetector( XFile? image = await _imagePicker.pickImage(
onTap: () async { source: ImageSource.gallery,
XFile? image = await _imagePicker.pickImage( imageQuality: 50,
source: ImageSource.gallery, );
imageQuality: 50, setState(() {
); _selectedImage = image;
setState(() { });
_selectedImage = image; },
}); child: CircleAvatar(
}, radius: 50.0,
child: CircleAvatar( backgroundImage: _selectedImage != null
radius: 50.0, ? Image.file(File(_selectedImage!.path)).image
backgroundImage: _selectedImage != null : AssetImage('assets/profile_image.jpg'),
? Image.file(File(_selectedImage!.path)).image ),
: AssetImage('assets/profile_image.jpg'),
), ),
),
//Bio Part //Bio Part
SizedBox(height: 20), SizedBox(height: 20),
...@@ -117,6 +109,7 @@ class _AddStudentState extends State<AddStudent> { ...@@ -117,6 +109,7 @@ class _AddStudentState extends State<AddStudent> {
), ),
), ),
), ),
// Add your other widgets here
], ],
), ),
SizedBox(height: 20), SizedBox(height: 20),
...@@ -206,7 +199,7 @@ class _AddStudentState extends State<AddStudent> { ...@@ -206,7 +199,7 @@ class _AddStudentState extends State<AddStudent> {
Row( Row(
children: [ children: [
Container( Container(
child: Text( child: Text(
' Medicine', ' Medicine',
style: const TextStyle( style: const TextStyle(
fontSize: 16, fontSize: 16,
...@@ -293,7 +286,7 @@ class _AddStudentState extends State<AddStudent> { ...@@ -293,7 +286,7 @@ class _AddStudentState extends State<AddStudent> {
fillColor: Color.fromARGB(107, 196, 196, 196), fillColor: Color.fromARGB(107, 196, 196, 196),
border: OutlineInputBorder( border: OutlineInputBorder(
borderRadius: BorderRadius.circular(10.0), borderRadius: BorderRadius.circular(10.0),
borderSide: BorderSide.none, borderSide: BorderSide.none, // Remove border color
), ),
suffixIcon: Icon(Icons.medication_outlined, suffixIcon: Icon(Icons.medication_outlined,
size: 23.0, color: Color.fromARGB(132, 12, 12, 12)), size: 23.0, color: Color.fromARGB(132, 12, 12, 12)),
...@@ -350,16 +343,13 @@ class _AddStudentState extends State<AddStudent> { ...@@ -350,16 +343,13 @@ class _AddStudentState extends State<AddStudent> {
), ),
), ),
//Contact Part //Contact Part
SizedBox(height: 50), SizedBox(height: 50),
Row( Row(
children: [ children: [
Container( Container(
child: Text( child: Text(
' Contact', ' Contact',
style: const TextStyle( style: const TextStyle(
fontSize: 16, fontSize: 16,
...@@ -372,7 +362,7 @@ class _AddStudentState extends State<AddStudent> { ...@@ -372,7 +362,7 @@ class _AddStudentState extends State<AddStudent> {
], ],
), ),
SizedBox(height: 20), SizedBox(height: 20),
Container( Container(
height: 55.0, height: 55.0,
child: TextField( child: TextField(
...@@ -393,7 +383,7 @@ class _AddStudentState extends State<AddStudent> { ...@@ -393,7 +383,7 @@ class _AddStudentState extends State<AddStudent> {
), ),
), ),
SizedBox(height: 20), SizedBox(height: 20),
Container( Container(
height: 55.0, height: 55.0,
child: TextField( child: TextField(
...@@ -414,8 +404,7 @@ class _AddStudentState extends State<AddStudent> { ...@@ -414,8 +404,7 @@ class _AddStudentState extends State<AddStudent> {
), ),
), ),
SizedBox(height: 20),
SizedBox(height: 20),
Container( Container(
height: 55.0, height: 55.0,
child: TextField( child: TextField(
...@@ -436,15 +425,13 @@ class _AddStudentState extends State<AddStudent> { ...@@ -436,15 +425,13 @@ class _AddStudentState extends State<AddStudent> {
), ),
), ),
//Adress Part
//Adress Part
SizedBox(height: 50), SizedBox(height: 50),
Row( Row(
children: [ children: [
Container( Container(
child: Text( child: Text(
' Adress', ' Adress',
style: const TextStyle( style: const TextStyle(
fontSize: 16, fontSize: 16,
...@@ -454,11 +441,10 @@ class _AddStudentState extends State<AddStudent> { ...@@ -454,11 +441,10 @@ class _AddStudentState extends State<AddStudent> {
), ),
), ),
), ),
// Add your other widgets here
], ],
), ),
SizedBox(height: 20), SizedBox(height: 20),
Container( Container(
height: 55.0, height: 55.0,
child: TextField( child: TextField(
...@@ -479,7 +465,7 @@ class _AddStudentState extends State<AddStudent> { ...@@ -479,7 +465,7 @@ class _AddStudentState extends State<AddStudent> {
), ),
), ),
SizedBox(height: 20), SizedBox(height: 20),
Container( Container(
height: 55.0, height: 55.0,
child: TextField( child: TextField(
...@@ -500,7 +486,7 @@ class _AddStudentState extends State<AddStudent> { ...@@ -500,7 +486,7 @@ class _AddStudentState extends State<AddStudent> {
), ),
), ),
SizedBox(height: 20), SizedBox(height: 20),
Container( Container(
height: 55.0, height: 55.0,
child: TextField( child: TextField(
...@@ -521,7 +507,7 @@ class _AddStudentState extends State<AddStudent> { ...@@ -521,7 +507,7 @@ class _AddStudentState extends State<AddStudent> {
), ),
), ),
SizedBox(height: 20), SizedBox(height: 20),
Container( Container(
height: 55.0, height: 55.0,
child: TextField( child: TextField(
...@@ -542,7 +528,7 @@ class _AddStudentState extends State<AddStudent> { ...@@ -542,7 +528,7 @@ class _AddStudentState extends State<AddStudent> {
), ),
), ),
SizedBox(height: 20), SizedBox(height: 20),
Container( Container(
height: 55.0, height: 55.0,
child: TextField( child: TextField(
...@@ -563,7 +549,7 @@ class _AddStudentState extends State<AddStudent> { ...@@ -563,7 +549,7 @@ class _AddStudentState extends State<AddStudent> {
), ),
), ),
SizedBox(height: 20), SizedBox(height: 20),
Container( Container(
height: 55.0, height: 55.0,
child: TextField( child: TextField(
...@@ -584,9 +570,6 @@ class _AddStudentState extends State<AddStudent> { ...@@ -584,9 +570,6 @@ class _AddStudentState extends State<AddStudent> {
), ),
), ),
SizedBox(height: 30), SizedBox(height: 30),
ElevatedButton( ElevatedButton(
...@@ -627,20 +610,17 @@ class _AddStudentState extends State<AddStudent> { ...@@ -627,20 +610,17 @@ class _AddStudentState extends State<AddStudent> {
children: [ children: [
Column( Column(
children: [ children: [
Text('Add'), Text('Signup'),
], ],
), ),
Column( Column(
children: [ children: [
Text('Kid'), Text('Signup'),
], ],
), ),
], ],
), ),
), ),
], ],
), ),
), ),
......
...@@ -3,7 +3,7 @@ import 'package:firebase_auth/firebase_auth.dart'; ...@@ -3,7 +3,7 @@ import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:jema_app/teacherchat.dart'; import 'package:jema_app/teacherchat.dart';
import 'package:jema_app/classroomview.dart'; import 'package:jema_app/classroomview.dart';
import 'package:jema_app/addclassroom.dart'; // Import the AddClassroomPage file import 'package:jema_app/addclassroom.dart';
class ChildrenProfilePage extends StatelessWidget { class ChildrenProfilePage extends StatelessWidget {
late User? user; late User? user;
......
This diff is collapsed.
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_auth/firebase_auth.dart'; import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:jema_app/teacherchat.dart';
import 'package:jema_app/classroomview.dart'; import 'package:jema_app/classroomview.dart';
import 'package:jema_app/addclassroom.dart'; import 'package:jema_app/addclassroom.dart';
import 'package:jema_app/teacherchat.dart';
import 'TeacherProfile.dart';
class TeacherHomePage extends StatelessWidget { class TeacherHomePage extends StatelessWidget {
late User? user; late User? user;
...@@ -20,6 +22,11 @@ class TeacherHomePage extends StatelessWidget { ...@@ -20,6 +22,11 @@ class TeacherHomePage extends StatelessWidget {
.snapshots(); .snapshots();
} }
// Define a TextStyle with the Poppins font
final TextStyle poppinsTextStyle = TextStyle(
fontFamily: 'Poppins',
);
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return WillPopScope( return WillPopScope(
...@@ -33,6 +40,7 @@ class TeacherHomePage extends StatelessWidget { ...@@ -33,6 +40,7 @@ class TeacherHomePage extends StatelessWidget {
child: Image.asset( child: Image.asset(
'lib/assets/logo.png', 'lib/assets/logo.png',
fit: BoxFit.contain, fit: BoxFit.contain,
height: 150, // Adjust the height to make the logo bigger
), ),
), ),
actions: [ actions: [
...@@ -52,8 +60,9 @@ class TeacherHomePage extends StatelessWidget { ...@@ -52,8 +60,9 @@ class TeacherHomePage extends StatelessWidget {
SizedBox(height: 20), SizedBox(height: 20),
Text( Text(
'Explore, learn, and play in our magical world of wonder!', 'Explore, learn, and play in our magical world of wonder!',
style: TextStyle( style: poppinsTextStyle.copyWith(
fontSize: 12, // fontWeight: FontWeight.bold,
fontSize: 13,
), ),
), ),
SizedBox(height: 10), SizedBox(height: 10),
...@@ -64,39 +73,58 @@ class TeacherHomePage extends StatelessWidget { ...@@ -64,39 +73,58 @@ class TeacherHomePage extends StatelessWidget {
), ),
), ),
SizedBox(height: 20), SizedBox(height: 20),
TextButton( Row(
onPressed: () { mainAxisAlignment: MainAxisAlignment.center,
// Navigate to the AddClassroomPage children: [
Navigator.push( TextButton(
context, onPressed: () {
MaterialPageRoute(builder: (context) => AddClassroomPage()), // Navigate to the AddClassroomPage
); Navigator.push(
}, context,
child: Text( MaterialPageRoute(builder: (context) => AddClassroomPage()),
'Add Classroom', );
style: TextStyle( },
color: Colors.blue, child: Row(
fontSize: 16, children: [
fontWeight: FontWeight.bold, Text(
'Create New Class Room Here',
style: poppinsTextStyle.copyWith(
color: Color.fromARGB(255, 0, 0, 0),
fontSize: 16,
),
),
Container(
margin: EdgeInsets.only(left: 8.0),
padding: EdgeInsets.all(8.0),
decoration: BoxDecoration(
color: Color.fromARGB(203, 164, 88, 177),
borderRadius: BorderRadius.circular(8.0),
),
child: Icon(
Icons.add,
color: Colors.white, // Set the icon color to white
),
),
],
),
), ),
), ],
), ),
Divider(), Divider(),
SizedBox(height: 10), SizedBox(height: 10),
Text( Text(
'Class Rooms', 'Class Rooms',
style: TextStyle( style: poppinsTextStyle.copyWith(
fontSize: 16, fontSize: 16,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
), ),
SizedBox(height: 10), SizedBox(height: 12),
Expanded( Expanded(
child: StreamBuilder<QuerySnapshot>( child: StreamBuilder<QuerySnapshot>(
stream: _usersStream, stream: _usersStream,
builder: (context, snapshot) { builder: (context, snapshot) {
print("--------------------------------------"); print("--------------------------------------");
print(snapshot.data!.docs.length);
if (snapshot.connectionState == ConnectionState.waiting) { if (snapshot.connectionState == ConnectionState.waiting) {
return CircularProgressIndicator(); return CircularProgressIndicator();
} }
...@@ -112,25 +140,62 @@ class TeacherHomePage extends StatelessWidget { ...@@ -112,25 +140,62 @@ class TeacherHomePage extends StatelessWidget {
var document = snapshot.data!.docs[index]; var document = snapshot.data!.docs[index];
var className = document['className']; var className = document['className'];
return ListTile( return Padding(
leading: CircleAvatar( padding: const EdgeInsets.only(bottom: 8.0), // Adjust the spacing as needed
backgroundImage: AssetImage('lib/assets/logo.png'), child: ListTile(
), leading: CircleAvatar(
title: Text(className), radius: 27.0,
trailing: ElevatedButton( backgroundImage: AssetImage('lib/assets/classlogo.png'),
onPressed: () { ),
print(document); title: Column(
// Handle view class button press crossAxisAlignment: CrossAxisAlignment.start,
Navigator.push( children: [
context, Row(
MaterialPageRoute( children: [
builder: (context) => ClassroomViewPage( Text(
documents: className, '$className',
style: poppinsTextStyle.copyWith(fontWeight: FontWeight.bold),
),
],
),
Row(
children: [
Text(
'Class $index',
style: poppinsTextStyle.copyWith(fontSize: 12.0),
),
],
),
],
),
trailing: Container(
height: 35.0,
width: 80.0,
decoration: BoxDecoration(
color: Color.fromARGB(203, 164, 88, 177),
borderRadius: BorderRadius.circular(4.0),
),
child: TextButton(
onPressed: () {
print(document);
// Handle view class button press
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => ClassroomViewPage(
documents: className,
),
),
);
},
child: Text(
'View',
style: poppinsTextStyle.copyWith(
color: Colors.white,
), ),
), ),
); ),
}, ),
child: Text('View'),
), ),
); );
}, },
...@@ -159,11 +224,24 @@ class TeacherHomePage extends StatelessWidget { ...@@ -159,11 +224,24 @@ class TeacherHomePage extends StatelessWidget {
selectedItemColor: Colors.blue, selectedItemColor: Colors.blue,
onTap: (index) { onTap: (index) {
// Handle bottom navigation item tap // Handle bottom navigation item tap
if (index == 1) { switch (index) {
Navigator.push( case 0:
context, // Navigate to Home
MaterialPageRoute(builder: (context) => TeacherChatPage()), break;
); case 1:
// Navigate to Chat
Navigator.push(
context,
MaterialPageRoute(builder: (context) => TeacherChatPage()),
);
break;
case 2:
// Navigate to Profile
Navigator.push(
context,
MaterialPageRoute(builder: (context) => TeacherProfilePage()),
);
break;
} }
}, },
), ),
......
...@@ -209,7 +209,6 @@ class AdditionalInfoPage extends StatelessWidget { ...@@ -209,7 +209,6 @@ class AdditionalInfoPage extends StatelessWidget {
ElevatedButton( ElevatedButton(
onPressed: () { onPressed: () {
// Logic to finish the teacher registration // Logic to finish the teacher registration
// You can add your own logic here
signUp(emailController.text, passwordController.text, rool, signUp(emailController.text, passwordController.text, rool,
context); context);
}, },
......
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
#include "generated_plugin_registrant.h" #include "generated_plugin_registrant.h"
#include <file_selector_linux/file_selector_plugin.h>
void fl_register_plugins(FlPluginRegistry* registry) { void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
file_selector_plugin_register_with_registrar(file_selector_linux_registrar);
} }
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# #
list(APPEND FLUTTER_PLUGIN_LIST list(APPEND FLUTTER_PLUGIN_LIST
file_selector_linux
) )
list(APPEND FLUTTER_FFI_PLUGIN_LIST list(APPEND FLUTTER_FFI_PLUGIN_LIST
......
...@@ -6,12 +6,14 @@ import FlutterMacOS ...@@ -6,12 +6,14 @@ import FlutterMacOS
import Foundation import Foundation
import cloud_firestore import cloud_firestore
import file_selector_macos
import firebase_auth import firebase_auth
import firebase_core import firebase_core
import rive_common import rive_common
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FLTFirebaseFirestorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseFirestorePlugin")) FLTFirebaseFirestorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseFirestorePlugin"))
FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin"))
FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin")) FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin"))
FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin")) FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin"))
RivePlugin.register(with: registry.registrar(forPlugin: "RivePlugin")) RivePlugin.register(with: registry.registrar(forPlugin: "RivePlugin"))
......
...@@ -81,6 +81,14 @@ packages: ...@@ -81,6 +81,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.17.1" version: "1.17.1"
cross_file:
dependency: transitive
description:
name: cross_file
sha256: "2f9d2cbccb76127ba28528cb3ae2c2326a122446a83de5a056aaa3880d3882c5"
url: "https://pub.dev"
source: hosted
version: "0.3.3+7"
cupertino_icons: cupertino_icons:
dependency: "direct main" dependency: "direct main"
description: description:
...@@ -105,6 +113,38 @@ packages: ...@@ -105,6 +113,38 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.1.0" version: "2.1.0"
file_selector_linux:
dependency: transitive
description:
name: file_selector_linux
sha256: "045d372bf19b02aeb69cacf8b4009555fb5f6f0b7ad8016e5f46dd1387ddd492"
url: "https://pub.dev"
source: hosted
version: "0.9.2+1"
file_selector_macos:
dependency: transitive
description:
name: file_selector_macos
sha256: b15c3da8bd4908b9918111fa486903f5808e388b8d1c559949f584725a6594d6
url: "https://pub.dev"
source: hosted
version: "0.9.3+3"
file_selector_platform_interface:
dependency: transitive
description:
name: file_selector_platform_interface
sha256: a3994c26f10378a039faa11de174d7b78eb8f79e4dd0af2a451410c1a5c3f66b
url: "https://pub.dev"
source: hosted
version: "2.6.2"
file_selector_windows:
dependency: transitive
description:
name: file_selector_windows
sha256: d3547240c20cabf205c7c7f01a50ecdbc413755814d6677f3cb366f04abcead0
url: "https://pub.dev"
source: hosted
version: "0.9.3+1"
firebase_auth: firebase_auth:
dependency: "direct main" dependency: "direct main"
description: description:
...@@ -166,6 +206,14 @@ packages: ...@@ -166,6 +206,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.0.3" version: "2.0.3"
flutter_plugin_android_lifecycle:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
sha256: b068ffc46f82a55844acfa4fdbb61fad72fa2aef0905548419d97f0f95c456da
url: "https://pub.dev"
source: hosted
version: "2.0.17"
flutter_test: flutter_test:
dependency: "direct dev" dependency: "direct dev"
description: flutter description: flutter
...@@ -200,6 +248,70 @@ packages: ...@@ -200,6 +248,70 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "4.0.2" version: "4.0.2"
image_picker:
dependency: "direct main"
description:
name: image_picker
sha256: "26222b01a0c9a2c8fe02fc90b8208bd3325da5ed1f4a2acabf75939031ac0bdd"
url: "https://pub.dev"
source: hosted
version: "1.0.7"
image_picker_android:
dependency: transitive
description:
name: image_picker_android
sha256: "39f2bfe497e495450c81abcd44b62f56c2a36a37a175da7d137b4454977b51b1"
url: "https://pub.dev"
source: hosted
version: "0.8.9+3"
image_picker_for_web:
dependency: transitive
description:
name: image_picker_for_web
sha256: "869fe8a64771b7afbc99fc433a5f7be2fea4d1cb3d7c11a48b6b579eb9c797f0"
url: "https://pub.dev"
source: hosted
version: "2.2.0"
image_picker_ios:
dependency: transitive
description:
name: image_picker_ios
sha256: eac0a62104fa12feed213596df0321f57ce5a572562f72a68c4ff81e9e4caacf
url: "https://pub.dev"
source: hosted
version: "0.8.9"
image_picker_linux:
dependency: transitive
description:
name: image_picker_linux
sha256: "4ed1d9bb36f7cd60aa6e6cd479779cc56a4cb4e4de8f49d487b1aaad831300fa"
url: "https://pub.dev"
source: hosted
version: "0.2.1+1"
image_picker_macos:
dependency: transitive
description:
name: image_picker_macos
sha256: "3f5ad1e8112a9a6111c46d0b57a7be2286a9a07fc6e1976fdf5be2bd31d4ff62"
url: "https://pub.dev"
source: hosted
version: "0.2.1+1"
image_picker_platform_interface:
dependency: transitive
description:
name: image_picker_platform_interface
sha256: fa4e815e6fcada50e35718727d83ba1c92f1edf95c0b4436554cec301b56233b
url: "https://pub.dev"
source: hosted
version: "2.9.3"
image_picker_windows:
dependency: transitive
description:
name: image_picker_windows
sha256: "6ad07afc4eb1bc25f3a01084d28520496c4a3bb0cb13685435838167c9dcedeb"
url: "https://pub.dev"
source: hosted
version: "0.2.1+1"
js: js:
dependency: transitive dependency: transitive
description: description:
...@@ -240,6 +352,14 @@ packages: ...@@ -240,6 +352,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.9.1" version: "1.9.1"
mime:
dependency: transitive
description:
name: mime
sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e
url: "https://pub.dev"
source: hosted
version: "1.0.4"
path: path:
dependency: transitive dependency: transitive
description: description:
...@@ -343,4 +463,4 @@ packages: ...@@ -343,4 +463,4 @@ packages:
version: "2.1.4" version: "2.1.4"
sdks: sdks:
dart: ">=3.0.1 <4.0.0" dart: ">=3.0.1 <4.0.0"
flutter: ">=3.3.0" flutter: ">=3.10.0"
...@@ -35,11 +35,11 @@ dependencies: ...@@ -35,11 +35,11 @@ dependencies:
# The following adds the Cupertino Icons font to your application. # The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons. # Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2 cupertino_icons: ^1.0.2
image_picker: ^0.8.0
firebase_core: ^2.24.2 firebase_core: ^2.24.2
firebase_auth: ^4.15.3 firebase_auth: ^4.15.3
cloud_firestore: ^4.13.6 cloud_firestore: ^4.13.6
awesome_dialog: ^3.1.0 awesome_dialog: ^3.1.0
image_picker: ^1.0.6
dev_dependencies: dev_dependencies:
...@@ -82,6 +82,7 @@ flutter: ...@@ -82,6 +82,7 @@ flutter:
- lib/assets/Vector25.png - lib/assets/Vector25.png
- lib/assets/Vector26.png - lib/assets/Vector26.png
- lib/assets/Ellipse 8.png - lib/assets/Ellipse 8.png
- lib/assets/classlogo.png
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include "generated_plugin_registrant.h" #include "generated_plugin_registrant.h"
#include <cloud_firestore/cloud_firestore_plugin_c_api.h> #include <cloud_firestore/cloud_firestore_plugin_c_api.h>
#include <file_selector_windows/file_selector_windows.h>
#include <firebase_auth/firebase_auth_plugin_c_api.h> #include <firebase_auth/firebase_auth_plugin_c_api.h>
#include <firebase_core/firebase_core_plugin_c_api.h> #include <firebase_core/firebase_core_plugin_c_api.h>
#include <rive_common/rive_plugin.h> #include <rive_common/rive_plugin.h>
...@@ -14,6 +15,8 @@ ...@@ -14,6 +15,8 @@
void RegisterPlugins(flutter::PluginRegistry* registry) { void RegisterPlugins(flutter::PluginRegistry* registry) {
CloudFirestorePluginCApiRegisterWithRegistrar( CloudFirestorePluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("CloudFirestorePluginCApi")); registry->GetRegistrarForPlugin("CloudFirestorePluginCApi"));
FileSelectorWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("FileSelectorWindows"));
FirebaseAuthPluginCApiRegisterWithRegistrar( FirebaseAuthPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("FirebaseAuthPluginCApi")); registry->GetRegistrarForPlugin("FirebaseAuthPluginCApi"));
FirebaseCorePluginCApiRegisterWithRegistrar( FirebaseCorePluginCApiRegisterWithRegistrar(
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
list(APPEND FLUTTER_PLUGIN_LIST list(APPEND FLUTTER_PLUGIN_LIST
cloud_firestore cloud_firestore
file_selector_windows
firebase_auth firebase_auth
firebase_core firebase_core
rive_common rive_common
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment