diff --git a/android/gradle.properties b/android/gradle.properties index a6738207..9aa3fdd9 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -2,3 +2,5 @@ org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true android.enableR8=true +org.gradle.jvmargs=--add-opens=java.base/java.io=ALL-UNNAMED + diff --git a/lib/Components/side_drawer.dart b/lib/Components/side_drawer.dart index be08db0e..91ffacaf 100644 --- a/lib/Components/side_drawer.dart +++ b/lib/Components/side_drawer.dart @@ -141,6 +141,11 @@ class _SideDrawerState extends State { ), ModulesPadding(line: 'Leave Module'), ModulesPadding(line: 'Placement Module'), + ModulesPadding( + line: 'Hostel Module', + pageMover: '/hostel_home', + isActive: true, + ), ModulesPadding(line: 'Visitors Hostel Module'), ModulesPadding(line: 'File Tracking Module'), ], diff --git a/lib/api.dart b/lib/api.dart index 802bee2d..24568166 100644 --- a/lib/api.dart +++ b/lib/api.dart @@ -1,9 +1,9 @@ //Server and local links String klocalLink = "127.0.0.1:8000"; -String kserverLink = "172.27.16.215:80"; +String kserverLink = "172.27.16.214:80"; //Login Service -String kAuthUrl = "172.27.16.215:80"; +String kAuthUrl = "172.27.16.214:80"; String kAuthLogin = "/api/auth/login/"; //Profile Service diff --git a/lib/ios/.gitignore b/lib/ios/.gitignore new file mode 100644 index 00000000..e96ef602 --- /dev/null +++ b/lib/ios/.gitignore @@ -0,0 +1,32 @@ +*.mode1v3 +*.mode2v3 +*.moved-aside +*.pbxuser +*.perspectivev3 +**/*sync/ +.sconsign.dblite +.tags* +**/.vagrant/ +**/DerivedData/ +Icon? +**/Pods/ +**/.symlinks/ +profile +xcuserdata +**/.generated/ +Flutter/App.framework +Flutter/Flutter.framework +Flutter/Flutter.podspec +Flutter/Generated.xcconfig +Flutter/app.flx +Flutter/app.zip +Flutter/flutter_assets/ +Flutter/flutter_export_environment.sh +ServiceDefinitions.json +Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!default.mode1v3 +!default.mode2v3 +!default.pbxuser +!default.perspectivev3 diff --git a/lib/ios/Flutter/AppFrameworkInfo.plist b/lib/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 00000000..6b4c0f78 --- /dev/null +++ b/lib/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 8.0 + + diff --git a/lib/ios/Flutter/Debug.xcconfig b/lib/ios/Flutter/Debug.xcconfig new file mode 100644 index 00000000..e8efba11 --- /dev/null +++ b/lib/ios/Flutter/Debug.xcconfig @@ -0,0 +1,2 @@ +#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "Generated.xcconfig" diff --git a/lib/ios/Flutter/Release.xcconfig b/lib/ios/Flutter/Release.xcconfig new file mode 100644 index 00000000..399e9340 --- /dev/null +++ b/lib/ios/Flutter/Release.xcconfig @@ -0,0 +1,2 @@ +#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "Generated.xcconfig" diff --git a/lib/ios/Podfile b/lib/ios/Podfile new file mode 100644 index 00000000..1e8c3c90 --- /dev/null +++ b/lib/ios/Podfile @@ -0,0 +1,41 @@ +# Uncomment this line to define a global platform for your project +# platform :ios, '9.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + use_frameworks! + use_modular_headers! + + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + end +end diff --git a/lib/ios/Runner.xcodeproj/project.pbxproj b/lib/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 00000000..2c6ee993 --- /dev/null +++ b/lib/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,563 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; + DB1A8C1C17DC3FCF7BEA8E4D /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 71634A3A14303D4A3314EE4B /* Pods_Runner.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 24A22905EB53875069EE89FE /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 71634A3A14303D4A3314EE4B /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 8DD0F3C03172DB0CA37B1015 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + E6CF6D81608B4B9165CF76F3 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + DB1A8C1C17DC3FCF7BEA8E4D /* Pods_Runner.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + E7C09DACEF39BD7086EE806F /* Pods */, + E7F76D88E946F94D1B2643D5 /* Frameworks */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; + E7C09DACEF39BD7086EE806F /* Pods */ = { + isa = PBXGroup; + children = ( + 8DD0F3C03172DB0CA37B1015 /* Pods-Runner.debug.xcconfig */, + E6CF6D81608B4B9165CF76F3 /* Pods-Runner.release.xcconfig */, + 24A22905EB53875069EE89FE /* Pods-Runner.profile.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; + E7F76D88E946F94D1B2643D5 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 71634A3A14303D4A3314EE4B /* Pods_Runner.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 3F74E18F33AA22719432BFE3 /* [CP] Check Pods Manifest.lock */, + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + 0BDB25762B2EC399EF213EB0 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1020; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 1100; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 0BDB25762B2EC399EF213EB0 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 3F74E18F33AA22719432BFE3 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.fusionIIIT.fusion; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.fusionIIIT.fusion; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.fusionIIIT.fusion; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/lib/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/lib/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..919434a6 --- /dev/null +++ b/lib/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/lib/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/lib/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/lib/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/lib/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/lib/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 00000000..f9b0d7c5 --- /dev/null +++ b/lib/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/lib/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/lib/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 00000000..a28140cf --- /dev/null +++ b/lib/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/ios/Runner.xcworkspace/contents.xcworkspacedata b/lib/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..21a3cc14 --- /dev/null +++ b/lib/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/lib/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/lib/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/lib/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/lib/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/lib/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 00000000..f9b0d7c5 --- /dev/null +++ b/lib/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/lib/ios/Runner/AppDelegate.swift b/lib/ios/Runner/AppDelegate.swift new file mode 100644 index 00000000..70693e4a --- /dev/null +++ b/lib/ios/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +import UIKit +import Flutter + +@UIApplicationMain +@objc class AppDelegate: FlutterAppDelegate { + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + GeneratedPluginRegistrant.register(with: self) + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } +} diff --git a/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..d36b1fab --- /dev/null +++ b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 00000000..69df02ed Binary files /dev/null and b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 00000000..a47d2ece Binary files /dev/null and b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 00000000..c9863a6d Binary files /dev/null and b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 00000000..8b021c8f Binary files /dev/null and b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 00000000..92449a62 Binary files /dev/null and b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 00000000..4b399db9 Binary files /dev/null and b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 00000000..62584c2c Binary files /dev/null and b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 00000000..c9863a6d Binary files /dev/null and b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 00000000..931d9b0b Binary files /dev/null and b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 00000000..18bdd6d0 Binary files /dev/null and b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 00000000..18bdd6d0 Binary files /dev/null and b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 00000000..0c17cb7b Binary files /dev/null and b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 00000000..4e59f28c Binary files /dev/null and b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 00000000..ce72317c Binary files /dev/null and b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 00000000..4268a7f5 Binary files /dev/null and b/lib/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/lib/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/lib/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 00000000..0bedcf2f --- /dev/null +++ b/lib/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchImage.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/lib/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/lib/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 00000000..9da19eac Binary files /dev/null and b/lib/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/lib/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/lib/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 00000000..9da19eac Binary files /dev/null and b/lib/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/lib/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/lib/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 00000000..9da19eac Binary files /dev/null and b/lib/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/lib/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/lib/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 00000000..89c2725b --- /dev/null +++ b/lib/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/lib/ios/Runner/Base.lproj/LaunchScreen.storyboard b/lib/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 00000000..f2e259c7 --- /dev/null +++ b/lib/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/ios/Runner/Base.lproj/Main.storyboard b/lib/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 00000000..f3c28516 --- /dev/null +++ b/lib/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/ios/Runner/Info.plist b/lib/ios/Runner/Info.plist new file mode 100644 index 00000000..bc70afa8 --- /dev/null +++ b/lib/ios/Runner/Info.plist @@ -0,0 +1,50 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + fusion + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + + + diff --git a/lib/ios/Runner/Runner-Bridging-Header.h b/lib/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 00000000..308a2a56 --- /dev/null +++ b/lib/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1 @@ +#import "GeneratedPluginRegistrant.h" diff --git a/lib/main.dart b/lib/main.dart index 9ca81ff8..501e29a2 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -5,6 +5,7 @@ import 'package:fusion/screens/Complaint/ComplaintHistory/complain_history.dart' import 'package:fusion/screens/Complaint/Feedback/feedback.dart'; import 'package:fusion/screens/Complaint/LodgeComplaint/lodge_complaint.dart'; import 'package:fusion/screens/Establishment/establishment_home_page.dart'; +import 'package:fusion/screens/Hostelmanagement/hostelmanagement.dart'; import 'package:fusion/screens/Library/Book_Search.dart'; import 'package:fusion/screens/Library/dues.dart'; import 'package:fusion/screens/Library/issued_items.dart'; @@ -41,6 +42,7 @@ import 'package:fusion/screens/Healthcenter/feedback.dart'; import 'package:fusion/screens/Healthcenter/viewschedule.dart'; import 'package:fusion/screens/Healthcenter/history.dart'; import 'package:fusion/screens/Healthcenter/HealthCenter.dart'; +import 'package:fusion/screens/Hostelmanagement/hostelmanagement.dart'; import 'package:fusion/services/service_locator.dart'; void main() { @@ -60,7 +62,9 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { MediaQueryData windowData = - MediaQueryData.fromWindow(WidgetsBinding.instance.window); + + MediaQueryData.fromWindow(WidgetsBinding.instance.window); + windowData = windowData.copyWith( textScaleFactor: 1, ); @@ -71,10 +75,12 @@ class MyApp extends StatelessWidget { title: 'Fusion', debugShowCheckedModeBanner: false, theme: ThemeData( - // primarySwatch: Colors.blueGrey, + + // primarySwatch: Colors.blueGrey, // colorSchemeSeed: Color(0xFF2085D0), colorSchemeSeed: Color(0xFFF36C35), - fontFamily: 'Nunito', + fontFamily: 'Nunito', + useMaterial3: true, ), initialRoute: '/landing', @@ -124,6 +130,9 @@ class MyApp extends StatelessWidget { '/health_center': (context) => HealthCenterMod( ModalRoute.of(context)!.settings.arguments.toString()), '/health_center/healthcenter': (context) => HealthCenter(), + + '/hostel_home': (context) => HostelHome(), + '/health_center/feedback': (context) => FeedBack(), '/health_center/viewschedule': (context) => ViewSchedule(), '/health_center/history': (context) => History(), diff --git a/lib/screens/Healthcenter/ambulanceRequest.dart b/lib/screens/Healthcenter/ambulanceRequest.dart index 41e92bc1..fc00e691 100644 --- a/lib/screens/Healthcenter/ambulanceRequest.dart +++ b/lib/screens/Healthcenter/ambulanceRequest.dart @@ -12,67 +12,67 @@ class _AmbulanceRequestState extends State { return Container( padding: EdgeInsets.all(20.0), child: Column( - children: [ - Padding(padding: EdgeInsets.symmetric(vertical: 20.0)), - DateTimeFormField( - decoration: const InputDecoration( - hintStyle: TextStyle(color: Colors.black45), - errorStyle: TextStyle(color: Colors.redAccent), - border: OutlineInputBorder(), - suffixIcon: Icon(Icons.event_note), - labelText: 'From', - ), - mode: DateTimeFieldPickerMode.date, - autovalidateMode: AutovalidateMode.always, - validator: (e) => - (e?.day ?? 0) == 1 ? 'Please not the first day' : null, - onDateSelected: (DateTime value) { - print(value); - }, - ), - Padding(padding: EdgeInsets.symmetric(vertical: 20.0)), - DateTimeFormField( - decoration: const InputDecoration( - hintStyle: TextStyle(color: Colors.black45), - errorStyle: TextStyle(color: Colors.redAccent), - border: OutlineInputBorder(), - suffixIcon: Icon(Icons.event_note), - labelText: 'To', - ), - mode: DateTimeFieldPickerMode.date, - autovalidateMode: AutovalidateMode.always, - validator: (e) => - (e?.day ?? 0) == 1 ? 'Please not the first day' : null, - onDateSelected: (DateTime value) { - print(value); - }, - ), - Padding(padding: EdgeInsets.symmetric(vertical: 20.0)), - TextFormField( - maxLines: 4, - cursorHeight: 30, - decoration: new InputDecoration( - labelText: "Reason", - fillColor: Colors.white, - border: new OutlineInputBorder(), - //fillColor: Colors.green - ), - style: new TextStyle( - fontFamily: "Poppins", - ), - ), - Padding(padding: EdgeInsets.symmetric(vertical: 20.0)), - Center( - child: TextButton( - child: Text( - 'Submit', - style: TextStyle(fontSize: 15.0), - ), - // color: Colors.deepOrangeAccent, - onPressed: () {}, - ), - ), - ], + + children: [ + Padding(padding: EdgeInsets.symmetric(vertical: 20.0)), + + DateTimeFormField( + decoration: const InputDecoration( + hintStyle: TextStyle(color: Colors.black45), + errorStyle: TextStyle(color: Colors.redAccent), + border: OutlineInputBorder(), + suffixIcon: Icon(Icons.event_note), + labelText: 'From', + ), + mode: DateTimeFieldPickerMode.date, + autovalidateMode: AutovalidateMode.always, + validator: (e) => (e?.day ?? 0) == 1 ? 'Please not the first day' : null, + onDateSelected: (DateTime value) { + print(value); + }, + ), + Padding(padding: EdgeInsets.symmetric(vertical: 20.0)), + + DateTimeFormField( + decoration: const InputDecoration( + hintStyle: TextStyle(color: Colors.black45), + errorStyle: TextStyle(color: Colors.redAccent), + border: OutlineInputBorder(), + suffixIcon: Icon(Icons.event_note), + labelText: 'To', + ), + mode: DateTimeFieldPickerMode.date, + autovalidateMode: AutovalidateMode.always, + validator: (e) => (e?.day ?? 0) == 1 ? 'Please not the first day' : null, + onDateSelected: (DateTime value) { + print(value); + }, + ), + Padding(padding: EdgeInsets.symmetric(vertical: 20.0)), + TextFormField( + maxLines: 4, + cursorHeight: 30, + decoration: new InputDecoration( + labelText: "Reason", + fillColor: Colors.white, + border: new OutlineInputBorder( + ), + //fillColor: Colors.green + ), + style: new TextStyle( + fontFamily: "Poppins", + ), + ), + Padding(padding: EdgeInsets.symmetric(vertical: 20.0)), + Center(child:TextButton( + child: Text('Submit', style: TextStyle(fontSize: 15.0),), + //color: Colors.deepOrangeAccent, + onPressed: () {}, + ), + ), + + ], + ), ); } diff --git a/lib/screens/Hostelmanagement/Book_Guest.dart b/lib/screens/Hostelmanagement/Book_Guest.dart new file mode 100644 index 00000000..6e1faacf --- /dev/null +++ b/lib/screens/Hostelmanagement/Book_Guest.dart @@ -0,0 +1,511 @@ +import 'package:flutter/material.dart'; +import 'package:fusion/main.dart'; +import 'package:fusion/screens/HostelManagement/hostelmanagement.dart'; + +class SubmitButton extends StatelessWidget { + final String text; + final Function onPressed; + + SubmitButton({required this.text, required this.onPressed}); + + @override + Widget build(BuildContext context) { + return ElevatedButton( + onPressed: onPressed(), + child: Text(text), + ); + } +} + +class Book_Guest extends StatelessWidget { + //const SecondRoute({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + leading: IconButton( + color: Colors.white, + onPressed: () { + Navigator.pop(context); + }, + icon: Icon(Icons.arrow_back), + ), + title: const Text("Guest Room Booking", + style: TextStyle(color: Colors.white)), + actions: const [ + Icon(Icons.notifications, color: Colors.white), + ], + backgroundColor: Colors.deepOrangeAccent, + ), + body: Align( + alignment: Alignment.topCenter, + child: Container( + width: 350, + height: 650, + decoration: BoxDecoration( + border: Border.all( + color: Colors.white, + width: 1, + ), + boxShadow: [ + BoxShadow( + color: Color.fromARGB(61, 9, 9, 9), + blurRadius: 4, + offset: Offset(0, 4), + ), + ], + ), + child: Stack( + children: [ + Positioned( + left: 20, + top: 6, + child: Text( + "Hall", + style: TextStyle( + color: Colors.black, + fontSize: 13, + ), + ), + ), + Positioned( + left: 14, + top: 29, + child: Container( + width: 302, + height: 34, + decoration: BoxDecoration( + border: Border.all( + color: Color(0xffd9d9d9), + width: 1, + ), + color: Colors.white, + ), + padding: const EdgeInsets.only( + left: 6, + right: 200, + ), + child: Row( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Text( + "Select hall no", + style: TextStyle( + color: Color(0xffd9d9d9), + fontSize: 15, + ), + ), + ], + ), + ), + ), + Positioned( + left: 18, + top: 71, + child: Text( + "Arrival date", + style: TextStyle( + color: Colors.black, + fontSize: 13, + ), + ), + ), + Positioned( + left: 14, + top: 90, + child: Container( + width: 115, + height: 30, + decoration: BoxDecoration( + border: Border.all( + color: Color(0xffd9d9d9), + width: 1, + ), + color: Colors.white, + ), + padding: const EdgeInsets.only( + left: 6, + right: 43, + top: 5, + bottom: 9, + ), + child: Row( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Text( + "dd-mm-yy", + style: TextStyle( + color: Colors.black, + fontSize: 13, + ), + ), + ], + ), + ), + ), + Positioned( + left: 194, + top: 70, + child: Text( + "Departure date", + style: TextStyle( + color: Colors.black, + fontSize: 13, + ), + ), + ), + Positioned( + left: 190, + top: 87, + child: Container( + width: 115, + height: 30, + decoration: BoxDecoration( + border: Border.all( + color: Color(0xffd9d9d9), + width: 1, + ), + color: Colors.white, + ), + padding: const EdgeInsets.only( + left: 11, + right: 38, + top: 5, + bottom: 9, + ), + child: Row( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Text( + "dd-mm-yy", + style: TextStyle( + color: Colors.black, + fontSize: 13, + ), + ), + ], + ), + ), + ), + Positioned( + left: 20, + top: 128, + child: Text( + "Arrival time", + style: TextStyle( + color: Colors.black, + fontSize: 13, + ), + ), + ), + Positioned( + left: 196, + top: 128, + child: Text( + "Departure time", + style: TextStyle( + color: Colors.black, + fontSize: 13, + ), + ), + ), + Positioned( + left: 16, + top: 147, + child: Container( + width: 115, + height: 30, + decoration: BoxDecoration( + border: Border.all( + color: Color(0xffd9d9d9), + width: 1, + ), + color: Colors.white, + ), + ), + ), + Positioned( + left: 192, + top: 147, + child: Container( + width: 115, + height: 30, + decoration: BoxDecoration( + border: Border.all( + color: Color(0xffd9d9d9), + width: 1, + ), + color: Colors.white, + ), + ), + ), + Positioned( + left: 19, + top: 184, + child: Text( + "No of guests ", + style: TextStyle( + color: Colors.black, + fontSize: 13, + ), + ), + ), + Positioned( + left: 197, + top: 184, + child: Text( + "Nationality", + style: TextStyle( + color: Colors.black, + fontSize: 13, + ), + ), + ), + Positioned( + left: 18, + top: 202, + child: Container( + width: 115, + height: 30, + decoration: BoxDecoration( + border: Border.all( + color: Color(0xffd9d9d9), + width: 1, + ), + color: Colors.white, + ), + ), + ), + Positioned( + left: 194, + top: 203, + child: Container( + width: 115, + height: 30, + decoration: BoxDecoration( + border: Border.all( + color: Color(0xffd9d9d9), + width: 1, + ), + color: Colors.white, + ), + ), + ), + Positioned( + left: 17, + top: 245, + child: Text( + "Number of rooms", + style: TextStyle( + color: Colors.black, + fontSize: 13, + ), + ), + ), + Positioned( + left: 197, + top: 245, + child: Text( + "Name of guest", + style: TextStyle( + color: Colors.black, + fontSize: 13, + ), + ), + ), + Positioned( + left: 17, + top: 264, + child: Container( + width: 115, + height: 30, + decoration: BoxDecoration( + border: Border.all( + color: Color(0xffd9d9d9), + width: 1, + ), + color: Colors.white, + ), + ), + ), + Positioned( + left: 194, + top: 263, + child: Container( + width: 115, + height: 30, + decoration: BoxDecoration( + border: Border.all( + color: Color(0xffd9d9d9), + width: 1, + ), + color: Colors.white, + ), + ), + ), + Positioned( + left: 18, + top: 304, + child: Text( + "Guest email ", + style: TextStyle( + color: Colors.black, + fontSize: 13, + ), + ), + ), + Positioned( + left: 192, + top: 304, + child: Text( + "Guest phone number", + style: TextStyle( + color: Colors.black, + fontSize: 13, + ), + ), + ), + Positioned( + left: 18, + top: 321, + child: Container( + width: 115, + height: 30, + decoration: BoxDecoration( + border: Border.all( + color: Color(0xffd9d9d9), + width: 1, + ), + color: Colors.white, + ), + ), + ), + Positioned( + left: 194, + top: 322, + child: Container( + width: 115, + height: 30, + decoration: BoxDecoration( + border: Border.all( + color: Color(0xffd9d9d9), + width: 1, + ), + color: Colors.white, + ), + ), + ), + Positioned( + left: 19, + top: 360, + child: Text( + "Guest Address", + style: TextStyle( + color: Colors.black, + fontSize: 13, + ), + ), + ), + Positioned( + left: 19, + top: 383, + child: Container( + width: 297, + height: 30, + decoration: BoxDecoration( + border: Border.all( + color: Color(0xffd9d9d9), + width: 1, + ), + color: Colors.white, + ), + ), + ), + Positioned( + left: 21, + top: 419, + child: Text( + "purpose", + style: TextStyle( + color: Colors.black, + fontSize: 13, + ), + ), + ), + Positioned( + left: 20, + top: 441, + child: Container( + width: 284, + height: 60, + decoration: BoxDecoration( + border: Border.all( + color: Color(0xffd9d9d9), + width: 1, + ), + color: Colors.white, + ), + ), + ), + Positioned( + left: 111, + top: 520, + /*child: Container( + width: 100, + height: 40, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(100), + color: Color(0xfff36c35), + ),*/ + child: Column( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Container( + width: 99, + height: 40, + padding: const EdgeInsets.symmetric( + horizontal: 30, + vertical: 10, + ), + child: Row( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + ElevatedButton( + onPressed: () {}, + child: Text('Submit', + style: TextStyle(color: Colors.white)), + style: ElevatedButton.styleFrom( + primary: Colors.deepOrangeAccent, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(20), + ), + textStyle: TextStyle( + fontSize: 11, + fontFamily: "Roboto", + fontWeight: FontWeight.w100), + ), + ), + ], + ), + ), + ], + ), + ), + ], + ), + ), + ), + ); + } +} diff --git a/lib/screens/Hostelmanagement/Notice_Board.dart b/lib/screens/Hostelmanagement/Notice_Board.dart new file mode 100644 index 00000000..d4f0ccac --- /dev/null +++ b/lib/screens/Hostelmanagement/Notice_Board.dart @@ -0,0 +1,311 @@ +import 'package:flutter/material.dart'; +import 'package:fusion/screens/Hostelmanagement/hostelmanagement.dart'; +import 'package:fusion/main.dart'; + +void setState(Null Function() param0) {} + +class Notice_Board extends StatelessWidget { + get classname => null; + List items = ['Select Hall', 'Hall1', 'Hall2', 'Hall3']; + String? selectedItem = 'Select Hall'; + + //const SecondRoute({super.key}); + + @override + Widget build(BuildContext context) { + // ignore: prefer_typing_uninitialized_variables + + var items; + + return Scaffold( + appBar: AppBar( + leading: IconButton( + color: Colors.white, + onPressed: () { + Navigator.pop(context); + }, + icon: Icon(Icons.arrow_back), + ), + title: const Text('Notice Board', + style: TextStyle( + color: Colors.white, + )), + actions: const [ + Icon(Icons.notifications, color: Colors.white), + ], + backgroundColor: Colors.deepOrangeAccent, + ), + body: Column(children: [ + Container( + height: 200, + width: 300, + //color: Colors.purple, + alignment: Alignment.center, + margin: const EdgeInsets.all(50), + padding: const EdgeInsets.all(30), + decoration: const BoxDecoration( + color: Color(0xFFffffff), + boxShadow: [ + BoxShadow( + color: Colors.grey, + blurRadius: 15.0, + spreadRadius: 5.0, + offset: Offset(5.0, 5.0), + ) + ], + ), + + child: Expanded( + child: Column( + children: [ + const Text( + "Notice Board", + style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold), + ), + const Divider( + height: 20, + thickness: 5, + indent: 20, + endIndent: 0, + color: Colors.black, + ), + DropdownButton( + value: 'Select Hall', + isExpanded: true, + icon: const Icon( + Icons.home, + color: Colors.deepOrangeAccent, + ), + underline: const SizedBox(), + onChanged: (String? newValue) { + if (newValue == 'Hall 1') { + Navigator.push( + context, + MaterialPageRoute(builder: (context) => Notice()), + ); + } else if (newValue == 'Hall 3') { + Navigator.push( + context, + MaterialPageRoute(builder: (context) => Notice()), + ); + } else if (newValue == 'Hall 4') { + Navigator.push( + context, + MaterialPageRoute(builder: (context) => Notice()), + ); + } else if (newValue == 'Maa Saraswati') { + Navigator.push( + context, + MaterialPageRoute(builder: (context) => Notice()), + ); + } + setState(() { + // handle updating category + }); + }, + items: [ + 'Select Hall', + 'Hall 1', + 'Hall 3', + 'Hall 4', + 'Maa Saraswati' + ].map>((String value) { + return DropdownMenuItem( + value: value, + child: Text(value), + ); + }).toList(), + ), + ], + ), + ), + ) + ])); + } +} + +class Notice extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + leading: IconButton( + color: Colors.white, + onPressed: () { + Navigator.pop(context); + }, + icon: Icon(Icons.arrow_back), + ), + title: const Text('Notice Board', + style: TextStyle( + color: Colors.white, + )), + actions: const [ + Icon(Icons.notifications, color: Colors.white), + ], + backgroundColor: Colors.deepOrangeAccent, + ), + body: Column(children: [ + Container( + height: 500, + width: 300, + //color: Colors.purple, + alignment: Alignment.center, + margin: const EdgeInsets.all(50), + padding: const EdgeInsets.all(30), + decoration: const BoxDecoration( + color: Color(0xFFffffff), + boxShadow: [ + BoxShadow( + color: Colors.grey, + blurRadius: 15.0, + spreadRadius: 5.0, + offset: Offset(5.0, 5.0), + ) + ], + ), + child: Column( + children: [ + const Text( + "Notice Board", + style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold), + ), + const Divider( + height: 20, + thickness: 5, + indent: 20, + endIndent: 0, + color: Colors.black, + ), + ElevatedButton.icon( + onPressed: () { + Navigator.push(context, + MaterialPageRoute(builder: (context) => noticeboard())); + }, + style: ElevatedButton.styleFrom( + primary: Colors.grey, // Background color + alignment: Alignment.topLeft, + ), + icon: const Icon( + // <-- Icon + Icons.description, + size: 24.0, + ), + label: Text('Hall 4'), + //<-- Text + ), + ], + ), + ), + ]), + ); + } +} + +class noticeboard extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + leading: IconButton( + color: Colors.white, + onPressed: () { + Navigator.pop(context); + }, + icon: Icon(Icons.arrow_back), + ), + title: const Text('Notice Board', + style: TextStyle( + color: Colors.white, + )), + actions: const [ + Icon(Icons.notifications, color: Colors.white), + ], + backgroundColor: Colors.deepOrangeAccent, + ), + body: Container( + height: 550, + width: 300, + //color: Colors.purple, + alignment: Alignment.center, + margin: const EdgeInsets.all(40), + padding: const EdgeInsets.all(20), + decoration: const BoxDecoration( + color: Color(0xFFffffff), + boxShadow: [ + BoxShadow( + color: Colors.grey, + blurRadius: 15.0, + spreadRadius: 5.0, + offset: Offset(5.0, 5.0), + ) + ], + ), + + child: Column( + children: [ + const Text( + "Hall 4 Notice", + style: TextStyle(fontSize: 30, fontWeight: FontWeight.bold), + ), + // const Divider( + // height: 20, + // thickness: 2, + // indent: 20, + // endIndent: 0, + // color: Colors.black, + // ), + ElevatedButton.icon( + onPressed: () {}, + style: ElevatedButton.styleFrom( + primary: Colors.grey, // Background color + alignment: Alignment.topLeft, + ), + icon: const Icon( + // <-- Icon + Icons.description, + size: 30.0, + ), + label: Text('Hall 4'), + //<-- Text + ), + Text( + 'Tech Fest', + textAlign: TextAlign.center, + style: TextStyle(fontSize: 20), + ), + Text( + "Aditya kumar", + textAlign: TextAlign.right, + style: TextStyle(fontSize: 20), + ), + + Center( + child: Container( + width: 400, + height: 400, + child: CustomPaint( + painter: OpenPainter(), + ), + ), + //child: Text:, + ), + ], + ), + ), + ); + } +} + +class OpenPainter extends CustomPainter { + @override + void paint(Canvas canvas, Size size) { + var paint1 = Paint() + ..color = Color.fromARGB(231, 245, 247, 246) + ..style = PaintingStyle.fill; + canvas.drawRect(Offset(50, 100) & const Size(200, 150), paint1); + } + + @override + bool shouldRepaint(CustomPainter oldDelegate) => true; +} diff --git a/lib/screens/Hostelmanagement/Staff_schedule.dart b/lib/screens/Hostelmanagement/Staff_schedule.dart new file mode 100644 index 00000000..ef040b34 --- /dev/null +++ b/lib/screens/Hostelmanagement/Staff_schedule.dart @@ -0,0 +1,103 @@ +import 'package:flutter/material.dart'; +import 'package:fusion/main.dart'; +import 'package:flutter/src/widgets/basic.dart'; +import 'package:fusion/screens/Hostelmanagement/hostelmanagement.dart'; + + + +class Staff_schedule extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + leading: IconButton( + onPressed: () { + Navigator.pop(context); + }, + icon: Icon(Icons.arrow_back), + ), + title: const Text('FUSION'), + actions: const [ + Icon(Icons.notifications), + Padding( + padding: EdgeInsets.symmetric(horizontal: 16), + child: Icon(Icons.search), + ), + Icon(Icons.more_vert), + ], + backgroundColor: Colors.deepOrangeAccent, + ), + body: Column( + children: [ + const Text( + "Schedule of Staff", + style: TextStyle(fontSize: 50, fontWeight: FontWeight.bold), + ), + // const Divider( + // height: 20, + // thickness: 2, + // indent: 20, + // endIndent: 0, + // color: Colors.black, + // ), + ElevatedButton.icon( + onPressed: () { + Navigator.push( + context, MaterialPageRoute(builder: (context) => Staff_schedule())); + }, + style: ElevatedButton.styleFrom( + primary: Colors.grey, // Background color + alignment: Alignment.topLeft, + ), + icon: const Icon( + // <-- Icon + Icons.description, + size: 30.0, + ), + label: Text('Select Hall'), + //<-- Text + ), + + Row( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + Container( + padding: EdgeInsets.all(2.0), + child: Text('Name', + style: TextStyle(color: Colors.black, fontSize: 25)), + ), + Container( + padding: EdgeInsets.all(2.0), + child: Text( + 'Date', + style: TextStyle(color: Colors.black, fontSize: 25), + ), + ), + Container( + padding: EdgeInsets.all(2.0), + child: Text( + 'Starting Time', + style: TextStyle(color: Colors.black, fontSize: 25), + ), + ), + Container( + padding: EdgeInsets.all(2.0), + child: Text( + 'Ending Time', + style: TextStyle(color: Colors.black, fontSize: 25), + ), + ), + Divider( + height: 20, + thickness: 2, + indent: 20, + endIndent: 0, + color: Colors.black, + ), + ], + ), + ], + ), + ); + } +} diff --git a/lib/screens/Hostelmanagement/Student_alloted_room.dart b/lib/screens/Hostelmanagement/Student_alloted_room.dart new file mode 100644 index 00000000..0999f39b --- /dev/null +++ b/lib/screens/Hostelmanagement/Student_alloted_room.dart @@ -0,0 +1,340 @@ +import 'package:flutter/material.dart'; +import 'package:fusion/main.dart'; +import 'package:flutter/src/widgets/basic.dart'; +import 'package:fusion/screens/HostelManagement/hostelmanagement.dart'; + +import 'Notice_Board.dart'; + +class Student_alloted_room extends StatelessWidget { + //const SecondRoute({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + leading: IconButton( + color: Colors.white, + onPressed: () { + Navigator.pop(context); + }, + icon: Icon(Icons.arrow_back), + ), + title: const Text("Student's Alloted Room", + style: TextStyle(color: Colors.white)), + actions: const [ + Icon(Icons.notifications, color: Colors.white), + ], + backgroundColor: Colors.deepOrangeAccent, + ), + body: Column( + children: [ + Container( + height: 200, + width: 300, + //color: Colors.purple, + alignment: Alignment.center, + margin: const EdgeInsets.all(50), + padding: const EdgeInsets.all(30), + decoration: const BoxDecoration( + color: Color(0xFFffffff), + boxShadow: [ + BoxShadow( + color: Colors.grey, + blurRadius: 15.0, + spreadRadius: 5.0, + offset: Offset(5.0, 5.0), + ) + ], + ), + + child: Column(children: [ + // IconButton( + // onPressed: () { + // Navigator.push( + // context, + // MaterialPageRoute(builder: (context) => Alloted_room()), + // ); + // }, + // icon: Icon( + // Icons.edit, + // ), + // ), + const Text( + "Edit student", + style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold), + ), + + const Divider( + height: 20, + thickness: 5, + indent: 20, + endIndent: 0, + color: Colors.black, + ), + DropdownButton( + value: 'Select Hall', + isExpanded: true, + icon: const Icon( + Icons.home, + color: Colors.deepOrangeAccent, + ), + underline: const SizedBox(), + onChanged: (String? newValue) { + if (newValue == 'Hall 1') { + Navigator.push( + context, + MaterialPageRoute(builder: (context) => Alloted_room()), + ); + } else if (newValue == 'Hall 3') { + Navigator.push( + context, + MaterialPageRoute(builder: (context) => Alloted_room()), + ); + } else if (newValue == 'Hall 4') { + Navigator.push( + context, + MaterialPageRoute(builder: (context) => Alloted_room()), + ); + } else if (newValue == 'Maa Saraswati') { + Navigator.push( + context, + MaterialPageRoute(builder: (context) => Alloted_room()), + ); + } + setState(() { + // handle updating category + }); + }, + items: [ + 'Select Hall', + 'Hall 1', + 'Hall 3', + 'Hall 4', + 'Maa Saraswati' + ].map>((String value) { + return DropdownMenuItem( + value: value, + child: Text(value), + ); + }).toList(), + ), + ]), + ), + ], + ), + ); + } +} + +class Alloted_room extends StatelessWidget { + get child => null; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + leading: IconButton( + color: Colors.white, + onPressed: () { + Navigator.pop(context); + }, + icon: Icon(Icons.arrow_back), + ), + title: const Text("Student's Alloted Room", + style: TextStyle(color: Colors.white)), + actions: const [ + Icon(Icons.notifications, color: Colors.white), + ], + backgroundColor: Colors.deepOrangeAccent, + ), + body: Column( + children: [ + GestureDetector( + onTap: () { + Navigator.push( + context, + MaterialPageRoute(builder: (context) => Alloted_room()), + ); + }, + child: Column( + children: [ + Icon(Icons.edit), + SizedBox(width: 8), + Text( + "Edit student", + style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold), + ), + ], + ), + ), + + // Column( + // crossAxisAlignment: CrossAxisAlignment.start, + // children: [ + // IconButton( + // onPressed: () { + // Navigator.push( + // context, + // MaterialPageRoute(builder: (context) => Alloted_room()), + // ); + // }, + // icon: Icon(Icons.edit), + + //const SizedBox(width: 8), + // const Text( + // "Edit student", + // style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold), + // ), + //), + + Container( + height: 500, + width: 300, + //color: Colors.purple, + alignment: Alignment.center, + margin: const EdgeInsets.all(50), + padding: const EdgeInsets.all(30), + decoration: const BoxDecoration( + color: Color(0xFFffffff), + boxShadow: [ + BoxShadow( + color: Colors.grey, + blurRadius: 15.0, + spreadRadius: 5.0, + offset: Offset(5.0, 5.0), + ) + ], + ), + + child: Column( + children: [ + const Text( + "Alloted room", + style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold), + ), + const Divider( + height: 20, + thickness: 5, + indent: 20, + endIndent: 0, + color: Colors.black, + ), + ElevatedButton.icon( + onPressed: () { + Navigator.push(context, + MaterialPageRoute(builder: (context) => rooms())); + }, + style: ElevatedButton.styleFrom( + primary: Colors.grey, // Background color + alignment: Alignment.topLeft, + ), + icon: const Icon( + // <-- Icon + Icons.description, + size: 24.0, + ), + label: Text('Hall 4'), + //<-- Text + ), + ], + ), + ), + ], + ), + ); + } +} + +class rooms extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + leading: IconButton( + color: Colors.white, + onPressed: () { + Navigator.pop(context); + }, + icon: Icon(Icons.arrow_back), + ), + title: const Text("Student's Alloted Room", + style: TextStyle(color: Colors.white)), + actions: const [ + Icon(Icons.notifications, color: Colors.white), + ], + backgroundColor: Colors.deepOrangeAccent, + ), + body: Column( + children: [ + const Text( + "Alloted room", + style: TextStyle(fontSize: 50, fontWeight: FontWeight.bold), + ), + // const Divider( + // height: 20, + // thickness: 2, + // indent: 20, + // endIndent: 0, + // color: Colors.black, + // ), + ElevatedButton.icon( + onPressed: () { + Navigator.push( + context, MaterialPageRoute(builder: (context) => rooms())); + }, + style: ElevatedButton.styleFrom( + primary: Colors.grey, // Background color + alignment: Alignment.topLeft, + ), + icon: const Icon( + // <-- Icon + Icons.description, + size: 30.0, + ), + label: Text('Hall 4'), + //<-- Text + ), + + Row( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + Container( + padding: EdgeInsets.all(2.0), + child: Text('Roll no', + style: TextStyle(color: Colors.black, fontSize: 25)), + ), + Container( + padding: EdgeInsets.all(2.0), + child: Text( + 'Name', + style: TextStyle(color: Colors.black, fontSize: 25), + ), + ), + Container( + padding: EdgeInsets.all(2.0), + child: Text( + 'Programme', + style: TextStyle(color: Colors.black, fontSize: 25), + ), + ), + Container( + padding: EdgeInsets.all(2.0), + child: Text( + 'Room no', + style: TextStyle(color: Colors.black, fontSize: 25), + ), + ), + Divider( + height: 20, + thickness: 2, + indent: 20, + endIndent: 0, + color: Colors.black, + ), + ], + ), + ], + ), + ); + } +} diff --git a/lib/screens/Hostelmanagement/Student_attendance.dart b/lib/screens/Hostelmanagement/Student_attendance.dart new file mode 100644 index 00000000..1519f470 --- /dev/null +++ b/lib/screens/Hostelmanagement/Student_attendance.dart @@ -0,0 +1,279 @@ +import 'package:flutter/material.dart'; +import 'package:fusion/main.dart'; +import 'package:fusion/screens/Hostelmanagement/hostelmanagement.dart'; + +import 'Notice_Board.dart'; + +class Student_attendance extends StatelessWidget { + //const SecondRoute({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + leading: IconButton( + color: Colors.white, + onPressed: () { + Navigator.pop(context); + }, + icon: Icon(Icons.arrow_back), + ), + title: const Text('Student Attendance', + style: TextStyle( + color: Colors.white, + )), + actions: const [ + Icon(Icons.notifications, color: Colors.white), + ], + backgroundColor: Colors.deepOrangeAccent, + ), + body: Column(children: [ + Container( + height: 200, + width: 300, + //color: Colors.purple, + alignment: Alignment.center, + margin: const EdgeInsets.all(50), + padding: const EdgeInsets.all(30), + decoration: const BoxDecoration( + color: Color(0xFFffffff), + boxShadow: [ + BoxShadow( + color: Colors.grey, + blurRadius: 15.0, + spreadRadius: 5.0, + offset: Offset(5.0, 5.0), + ) + ], + ), + + child: Column(children: [ + const Text( + "Student attendance", + style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold), + ), + const Divider( + height: 20, + thickness: 5, + indent: 20, + endIndent: 0, + color: Colors.black, + ), + DropdownButton( + value: 'Select Hall', + isExpanded: true, + icon: const Icon( + Icons.home, + color: Colors.deepOrangeAccent, + ), + underline: const SizedBox(), + onChanged: (String? newValue) { + if (newValue == 'Hall 1') { + Navigator.push( + context, + MaterialPageRoute(builder: (context) => attendance()), + ); + } else if (newValue == 'Hall 3') { + Navigator.push( + context, + MaterialPageRoute(builder: (context) => attendance()), + ); + } else if (newValue == 'Hall 4') { + Navigator.push( + context, + MaterialPageRoute(builder: (context) => attendance()), + ); + } else if (newValue == 'Maa Saraswati') { + Navigator.push( + context, + MaterialPageRoute(builder: (context) => attendance()), + ); + } + setState(() { + // handle updating category + }); + }, + items: [ + 'Select Hall', + 'Hall 1', + 'Hall 3', + 'Hall 4', + 'Maa Saraswati' + ].map>((String value) { + return DropdownMenuItem( + value: value, + child: Text(value), + ); + }).toList(), + ), + ]), + ), + ]), + ); + } +} + +class attendance extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + leading: IconButton( + color: Colors.white, + onPressed: () { + Navigator.pop(context); + }, + icon: Icon(Icons.arrow_back), + ), + title: const Text('Student Attendance', + style: TextStyle( + color: Colors.white, + )), + actions: const [ + Icon(Icons.notifications, color: Colors.white), + ], + backgroundColor: Colors.deepOrangeAccent, + ), + body: Column(children: [ + Container( + height: 500, + width: 300, + //color: Colors.purple, + alignment: Alignment.center, + margin: const EdgeInsets.all(50), + padding: const EdgeInsets.all(30), + decoration: const BoxDecoration( + color: Color(0xFFffffff), + boxShadow: [ + BoxShadow( + color: Colors.grey, + blurRadius: 15.0, + spreadRadius: 5.0, + offset: Offset(5.0, 5.0), + ) + ], + ), + child: Column( + children: [ + const Text( + "Attendance", + style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold), + ), + const Divider( + height: 20, + thickness: 5, + indent: 20, + endIndent: 0, + color: Colors.black, + ), + ElevatedButton.icon( + onPressed: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => view_attendance())); + }, + style: ElevatedButton.styleFrom( + primary: Colors.grey, // Background color + alignment: Alignment.topLeft, + ), + icon: const Icon( + // <-- Icon + Icons.description, + size: 24.0, + ), + label: Text('Hall 4'), + //<-- Text + ), + ], + ), + ), + ]), + ); + } +} + +class view_attendance extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + leading: IconButton( + color: Colors.white, + onPressed: () { + Navigator.pop(context); + }, + icon: Icon(Icons.arrow_back), + ), + title: const Text('Student Attendance', + style: TextStyle( + color: Colors.white, + )), + actions: const [ + Icon(Icons.notifications, color: Colors.white), + ], + backgroundColor: Colors.deepOrangeAccent, + ), + body: Column( + children: [ + const Text( + "View Attendance", + style: TextStyle(fontSize: 50, fontWeight: FontWeight.bold), + ), + // const Divider( + // height: 20, + // thickness: 2, + // indent: 20, + // endIndent: 0, + // color: Colors.black, + // ), + ElevatedButton.icon( + onPressed: () {}, + style: ElevatedButton.styleFrom( + primary: Colors.grey, // Background color + alignment: Alignment.topLeft, + ), + icon: const Icon( + // <-- Icon + Icons.description, + size: 30.0, + ), + label: Text('Hall 4'), + //<-- Text + ), + Row( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + Container( + padding: EdgeInsets.all(2.0), + child: Text('Roll no', + style: TextStyle(color: Colors.black, fontSize: 30)), + ), + Container( + padding: EdgeInsets.all(2.0), + child: Text( + 'Name', + style: TextStyle(color: Colors.black, fontSize: 30), + ), + ), + Container( + padding: EdgeInsets.all(2.0), + child: Text( + 'Date', + style: TextStyle(color: Colors.black, fontSize: 30), + ), + ), + Container( + padding: EdgeInsets.all(2.0), + child: Text( + 'Present', + style: TextStyle(color: Colors.black, fontSize: 30), + ), + ), + ], + ), + ], + ), + ); + } +} diff --git a/lib/screens/Hostelmanagement/hostelmanagement.dart b/lib/screens/Hostelmanagement/hostelmanagement.dart new file mode 100644 index 00000000..88a6d31d --- /dev/null +++ b/lib/screens/Hostelmanagement/hostelmanagement.dart @@ -0,0 +1,184 @@ +import 'package:flutter/material.dart'; +import 'package:fusion/Components/appBar.dart'; +import 'package:fusion/main.dart'; +import 'package:fusion/Components/side_drawer.dart'; +import 'package:fusion/screens/HostelManagement/Student_alloted_room.dart'; +import 'package:fusion/screens/HostelManagement/Notice_Board.dart'; +import 'package:fusion/screens/HostelManagement/Student_attendance.dart'; +import 'package:fusion/screens/HostelManagement/your_book.dart'; +import 'package:fusion/screens/HostelManagement/Book_Guest.dart'; + +class HostelHome extends StatefulWidget { + @override + _HostelHomeScreen createState() => _HostelHomeScreen(); +} + +class _HostelHomeScreen extends State { + BoxDecoration myBoxDecoration() { + return BoxDecoration( + border: new Border.all( + color: Colors.deepOrangeAccent, + width: 2.0, + style: BorderStyle.solid, + ), + borderRadius: new BorderRadius.all(new Radius.circular(15.0))); + } + + Text myText(String text) { + return Text( + text, + style: TextStyle(fontSize: 20.0, fontWeight: FontWeight.w500), + ); + } + + Padding myContainer(String text) { + return Padding( + padding: const EdgeInsets.all(8.0), + child: Container( + child: Padding( + padding: const EdgeInsets.all(8.0), + child: myText(text), + ), + decoration: myBoxDecoration(), + ), + ); + } + + @override + Widget build(BuildContext context) { + final data = ''; + return Scaffold( + appBar: DefaultAppBar().buildAppBar(), + drawer: SideDrawer(), + body: ListView( + shrinkWrap: true, + physics: ClampingScrollPhysics(), + children: [ + Card( + elevation: 2.0, + margin: EdgeInsets.symmetric(horizontal: 50.0, vertical: 20.0), + shadowColor: Colors.black, + child: Column( + children: [ + Container( + margin: EdgeInsets.only(top: 20.0), + width: 170.0, + height: 170.0, + decoration: BoxDecoration( + image: DecorationImage( + image: AssetImage('assets/unknown.jpg'), + fit: BoxFit.cover, + ), + ), + ), + SizedBox( + height: 10.0, + ), + Text( + //NAME OF USER + 'Yash Goel', + // data.details!['current_user']['first_name'] + + // ' ' + + // data.details!['current_user']['last_name'], + style: TextStyle(fontSize: 20.0, color: Colors.black), + ), + SizedBox( + height: 10.0, + ), + Text( + 'CSE', + // data.details!['user_branch'] + ' | ' + "STUDENT", + // style: TextStyle(fontSize: 15.0, color: Colors.black), + ), + SizedBox( + height: 10.0, + ), + ], + ), + ), + Padding( + padding: const EdgeInsets.all(8.0), + child: Container( + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Center( + child: Text( + "Hostel Management", + style: TextStyle( + fontSize: 20.0, + color: Colors.white, + ), + )), + ), + decoration: new BoxDecoration( + color: Colors.deepOrangeAccent, + boxShadow: [ + BoxShadow( + color: Colors.black, + offset: Offset(0.0, 1.0), + blurRadius: 2.0, + ) + ], + borderRadius: new BorderRadius.all(new Radius.circular(5.0)), + ), + ), + ), + Card( + elevation: 2.0, + margin: EdgeInsets.symmetric(horizontal: 10.0, vertical: 10.0), + shadowColor: Colors.black, + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + InkWell( + child: myContainer("Student alloted room"), + onTap: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => Student_alloted_room())); + //action code for button 1 + }, + ), + InkWell( + child: myContainer("Notice Board"), + onTap: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => Notice_Board())); + }, + ), + InkWell( + child: myContainer("Student attendance"), + onTap: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => Student_attendance())); + }, + ), + InkWell( + child: myContainer("Book Guest Room"), + onTap: () { + Navigator.push(context, + MaterialPageRoute(builder: (context) => Book_Guest())); + //action code for button 1 + }, + ), + InkWell( + child: myContainer("Your Booking"), + onTap: () { + Navigator.push(context, + MaterialPageRoute(builder: (context) => your_book())); + //action code for button 1 + }, + ), + ], + ), + ), + ], + ), + ); + } +} diff --git a/lib/screens/Hostelmanagement/your_book.dart b/lib/screens/Hostelmanagement/your_book.dart new file mode 100644 index 00000000..e87683a5 --- /dev/null +++ b/lib/screens/Hostelmanagement/your_book.dart @@ -0,0 +1,198 @@ +import 'package:flutter/material.dart'; +import 'package:fusion/main.dart'; +import 'package:flutter/src/widgets/basic.dart'; +import 'package:fusion/screens/HostelManagement/hostelmanagement.dart'; + +class your_book extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + leading: IconButton( + color: Colors.white, + onPressed: () { + Navigator.pop(context); + }, + icon: Icon(Icons.arrow_back), + ), + title: + const Text('Your Booking', style: TextStyle(color: Colors.white)), + actions: const [ + Icon(Icons.notifications, color: Colors.white), + ], + backgroundColor: Colors.deepOrangeAccent, + ), + body: Align( + alignment: Alignment.topCenter, + child: Container( + width: 500, + height: 600, + decoration: BoxDecoration( + border: Border.all( + color: Colors.white, + width: 1, + ), + boxShadow: [ + BoxShadow( + color: Color.fromARGB(255, 179, 176, 176), + blurRadius: 4, + offset: Offset(0, 4), + ), + ], + ), + + // const Divider( + // height: 20, + // thickness: 2, + // indent: 20, + // endIndent: 0, + // color: Colors.black, + // ), + + padding: const EdgeInsets.only( + left: 8, + right: 7, + top: 7, + bottom: 81, + ), + child: Row( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Container( + width: 400, + height: 300, + decoration: BoxDecoration( + border: Border.all( + color: Colors.white, + width: 1, + ), + ), + child: Stack( + children: [ + Positioned( + left: 82, + top: 10, + child: Text( + "Room for 3 in aryabhatta", + style: TextStyle( + color: Colors.black, + fontSize: 15, + ), + ), + ), + Positioned( + left: 9, + top: 41, + child: Align( + alignment: Alignment.topCenter, + child: Container( + width: 350, + height: 205, + decoration: BoxDecoration( + border: Border.all( + color: Color(0xffd9d9d9), + width: 1, + ), + ), + padding: const EdgeInsets.only( + left: 1, + right: 10, + top: 13, + ), + child: Column( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.end, + crossAxisAlignment: CrossAxisAlignment.end, + children: [ + Text( + "Requested for contact Arrival / Departure", + style: TextStyle( + color: Colors.black, + fontSize: 13, + ), + ), + SizedBox(height: 20), + Text( + "Pankaj 9404578921 March 28", + style: TextStyle( + color: Colors.black, + fontSize: 13, + ), + ), + SizedBox(height: 20), + Container( + width: 278, + height: 1, + ), + SizedBox(height: 20), + Container( + width: 250, + height: 29, + decoration: BoxDecoration( + border: Border.all( + color: Color(0xffd9d9d9), + width: 1, + ), + ), + padding: const EdgeInsets.only( + left: 9, + right: 300, + top: 6, + bottom: 7, + ), + child: Row( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.start, + crossAxisAlignment: + CrossAxisAlignment.center, + children: [ + Text( + "Reason", + style: TextStyle( + color: Color(0xffd9d9d9), + fontSize: 13, + ), + ), + ], + ), + ), + SizedBox(height: 20), + Transform.rotate( + angle: 1.58, + child: Container( + width: 71.01, + height: 1, + ), + ), + SizedBox(height: 20), + Transform.rotate( + angle: 1.57, + child: Container( + width: 71, + height: 1, + ), + ), + ], + ), + ), + ), + ), + Positioned( + left: 8, + top: 78, + child: Container( + width: 305, + height: 1, + ), + ), + ], + ), + ), + ], + ), + )), + ); + } +}