diff --git a/.metadata b/.metadata index 262ceed..14ec49c 100644 --- a/.metadata +++ b/.metadata @@ -1,11 +1,11 @@ # This file tracks properties of this Flutter project. # Used by Flutter tool to assess capabilities and perform upgrades etc. # -# This file should be version controlled. +# This file should be version controlled and should not be manually edited. version: - revision: 135454af32477f815a7525073027a3ff9eff1bfd - channel: stable + revision: "7482962148e8d758338d8a28f589f317e1e42ba4" + channel: "stable" project_type: app @@ -13,26 +13,11 @@ project_type: app migration: platforms: - platform: root - create_revision: 135454af32477f815a7525073027a3ff9eff1bfd - base_revision: 135454af32477f815a7525073027a3ff9eff1bfd + create_revision: 7482962148e8d758338d8a28f589f317e1e42ba4 + base_revision: 7482962148e8d758338d8a28f589f317e1e42ba4 - platform: android - create_revision: 135454af32477f815a7525073027a3ff9eff1bfd - base_revision: 135454af32477f815a7525073027a3ff9eff1bfd - - platform: ios - create_revision: 135454af32477f815a7525073027a3ff9eff1bfd - base_revision: 135454af32477f815a7525073027a3ff9eff1bfd - - platform: linux - create_revision: 135454af32477f815a7525073027a3ff9eff1bfd - base_revision: 135454af32477f815a7525073027a3ff9eff1bfd - - platform: macos - create_revision: 135454af32477f815a7525073027a3ff9eff1bfd - base_revision: 135454af32477f815a7525073027a3ff9eff1bfd - - platform: web - create_revision: 135454af32477f815a7525073027a3ff9eff1bfd - base_revision: 135454af32477f815a7525073027a3ff9eff1bfd - - platform: windows - create_revision: 135454af32477f815a7525073027a3ff9eff1bfd - base_revision: 135454af32477f815a7525073027a3ff9eff1bfd + create_revision: 7482962148e8d758338d8a28f589f317e1e42ba4 + base_revision: 7482962148e8d758338d8a28f589f317e1e42ba4 # User provided section diff --git a/README.md b/README.md index 4dd140f..4100205 100644 --- a/README.md +++ b/README.md @@ -1,98 +1,98 @@ -# NoticeBoard 📝 - -NoticeBoard is a Flutter-based open-source project that provides a platform for displaying and managing notices. It aims to make it easy for organizations and communities to share important information with their members. - -## Table of Contents - -- [Getting Started](#getting-started) - - [Prerequisites](#prerequisites) - - [Installation](#installation) -- [Usage](#usage) -- [Contributing](#contributing) - - [Submitting Pull Requests](#submitting-pull-requests) -- [License](#license) - -## Getting Started - -These instructions will get you a copy of the NoticeBoard project up and running on your local machine for development and testing purposes. - -### Prerequisites - -Before getting started, make sure you have the following installed on your system: - -- Flutter SDK (version X.X.X): [Flutter Installation Guide](https://flutter.dev/docs/get-started/install) -- Dart SDK (version X.X.X): [Dart Installation Guide](https://dart.dev/get-dart) - -### Installation - -1. Clone the NoticeBoard repository: - -```bash -git clone https://github.com/CodeX-MIT-BLR/NoticeBoard.git -``` -2. Navigate to the project directory: - -```bash -cd NoticeBoard -``` -3. Install the project dependencies: - -```bash -flutter pub get -``` -### Usage - -To run the NoticeBoard project on your local machine, follow these steps: - -Ensure you have a connected device (emulator or physical device) or a running simulator. - -1. Run the application: -```bash -flutter run -``` -This command will build and launch the NoticeBoard application on your device. - - -

Contributing

- -Any idea on how we can make this more awesome ? [Open a new issue](https://github.com/CodeX-MIT-BLR/NoticeBoard/issues)! We need all the help we can get to make this project awesome! You can also join the discord server to give suggestions. You can read the [Contributing guidelines](CONTRIBUTING.md). - -
-
-
-
-
-
- -## Submitting Pull Requests - -If you want to contribute code to the project, you can do so by submitting a pull request. Here's how: - -1. Fork the repository to your GitHub account. -2. Clone your forked repository to your local machine. -```git clone https://github.com/CodeX-MIT-BLR/NoticeBoard``` -3. Create a new branch for your changes: -```git checkout -b my-feature``` -4. Make the necessary changes and commit them. -```git add .``` -```git commit -m "commit message"``` -5. Push your changes to your forked repository: -``` -git push origin my-feature -``` -6. Open a pull request on the Pull Request page of the original repository. - -## Project Maintainers ✨ - - - - - - -

Chandan-CV -

Kevin Thomas -
- -## License - -The NoticeBoard project is licensed under the MIT License. Please see the LICENSE file for more details. +# NoticeBoard 📝 + +NoticeBoard is a Flutter-based open-source project that provides a platform for displaying and managing notices. It aims to make it easy for organizations and communities to share important information with their members. + +## Table of Contents + +- [Getting Started](#getting-started) + - [Prerequisites](#prerequisites) + - [Installation](#installation) +- [Usage](#usage) +- [Contributing](#contributing) + - [Submitting Pull Requests](#submitting-pull-requests) +- [License](#license) + +## Getting Started + +These instructions will get you a copy of the NoticeBoard project up and running on your local machine for development and testing purposes. + +### Prerequisites + +Before getting started, make sure you have the following installed on your system: + +- Flutter SDK (version X.X.X): [Flutter Installation Guide](https://flutter.dev/docs/get-started/install) +- Dart SDK (version X.X.X): [Dart Installation Guide](https://dart.dev/get-dart) + +### Installation + +1. Clone the NoticeBoard repository: + +```bash +git clone https://github.com/mitblr-club/noticeboard.git +``` +2. Navigate to the project directory: + +```bash +cd NoticeBoard +``` +3. Install the project dependencies: + +```bash +flutter pub get +``` +### Usage + +To run the NoticeBoard project on your local machine, follow these steps: + +Ensure you have a connected device (emulator or physical device) or a running simulator. + +1. Run the application: +```bash +flutter run +``` +This command will build and launch the NoticeBoard application on your device. + + +

Contributing

+ +Any idea on how we can make this more awesome ? [Open a new issue](https://github.com/mitblr-club/noticeboard/issues)! We need all the help we can get to make this project awesome! You can also join the discord server to give suggestions. You can read the [Contributing guidelines](CONTRIBUTING.md). + +
+
+
+
+
+
+ +## Submitting Pull Requests + +If you want to contribute code to the project, you can do so by submitting a pull request. Here's how: + +1. Fork the repository to your GitHub account. +2. Clone your forked repository to your local machine. +```git clone https://github.com/mitblr-club/noticeboard``` +3. Create a new branch for your changes: +```git checkout -b my-feature``` +4. Make the necessary changes and commit them. +```git add .``` +```git commit -m "commit message"``` +5. Push your changes to your forked repository: +``` +git push origin my-feature +``` +6. Open a pull request on the Pull Request page of the original repository. + +## Project Maintainers ✨ + + + + + + +

Chandan-CV +

Kevin Thomas +
+ +## License + +The NoticeBoard project is licensed under the MIT License. Please see the LICENSE file for more details. diff --git a/android/app/build.gradle b/android/app/build.gradle index 0804934..ba6f243 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -1,3 +1,9 @@ +plugins { + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' @@ -21,16 +22,9 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" -def keystoreProperties = new Properties() - def keystorePropertiesFile = rootProject.file('key.properties') - if (keystorePropertiesFile.exists()) { - keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) - } android { - compileSdkVersion 33 + namespace "com.example.noticeboard" + compileSdk flutter.compileSdkVersion ndkVersion flutter.ndkVersion compileOptions { @@ -48,33 +42,26 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.codexmitb.maheblr_noticeboard" + applicationId "com.example.noticeboard" // You can update the following values to match your application needs. - // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. - minSdkVersion 29 - targetSdkVersion 31 + // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName } - signingConfigs { - release { - keyAlias keystoreProperties['keyAlias'] - keyPassword keystoreProperties['keyPassword'] - storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null - storePassword keystoreProperties['storePassword'] - } - } - buildTypes { - release { - signingConfig signingConfigs.release - } - } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } } flutter { source '../..' } -dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" -} +dependencies {} diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml index 5764502..399f698 100644 --- a/android/app/src/debug/AndroidManifest.xml +++ b/android/app/src/debug/AndroidManifest.xml @@ -1,5 +1,4 @@ - + + + + + + + diff --git a/android/app/src/main/kotlin/com/example/notice_board/MainActivity.kt b/android/app/src/main/kotlin/com/example/notice_board/MainActivity.kt deleted file mode 100644 index c73e61e..0000000 --- a/android/app/src/main/kotlin/com/example/notice_board/MainActivity.kt +++ /dev/null @@ -1,6 +0,0 @@ -package com.example.notice_board - -import io.flutter.embedding.android.FlutterActivity - -class MainActivity: FlutterActivity() { -} diff --git a/android/app/src/main/kotlin/com/example/noticeboard/MainActivity.kt b/android/app/src/main/kotlin/com/example/noticeboard/MainActivity.kt new file mode 100644 index 0000000..c174def --- /dev/null +++ b/android/app/src/main/kotlin/com/example/noticeboard/MainActivity.kt @@ -0,0 +1,5 @@ +package com.example.noticeboard + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() diff --git a/android/app/src/main/res/mipmap-hdpi/launcher_icon.png b/android/app/src/main/res/mipmap-hdpi/launcher_icon.png index acdd68b..f203a7f 100644 Binary files a/android/app/src/main/res/mipmap-hdpi/launcher_icon.png and b/android/app/src/main/res/mipmap-hdpi/launcher_icon.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/launcher_icon.png b/android/app/src/main/res/mipmap-mdpi/launcher_icon.png index d80cc8c..6557f37 100644 Binary files a/android/app/src/main/res/mipmap-mdpi/launcher_icon.png and b/android/app/src/main/res/mipmap-mdpi/launcher_icon.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png b/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png index 17beef8..0b0bc79 100644 Binary files a/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png and b/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png b/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png index 24f5917..f40e01a 100644 Binary files a/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png and b/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png b/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png index 15d7dbe..5581e1a 100644 Binary files a/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png and b/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png differ diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml index f946c7f..399f698 100644 --- a/android/app/src/profile/AndroidManifest.xml +++ b/android/app/src/profile/AndroidManifest.xml @@ -1,9 +1,7 @@ - + - diff --git a/android/build.gradle b/android/build.gradle index 3cdaac9..bc157bd 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,16 +1,3 @@ -buildscript { - ext.kotlin_version = '1.6.10' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - allprojects { repositories { google() diff --git a/android/gradle.properties b/android/gradle.properties index 94adc3a..598d13f 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,3 +1,3 @@ -org.gradle.jvmargs=-Xmx1536M +org.gradle.jvmargs=-Xmx4G android.useAndroidX=true android.enableJetifier=true diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index cb24abd..b1624c4 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-bin.zip +networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip diff --git a/android/settings.gradle b/android/settings.gradle index 44e62bc..1d6d19b 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -1,11 +1,26 @@ -include ':app' +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + } + settings.ext.flutterSdkPath = flutterSdkPath() -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "7.3.0" apply false + id "org.jetbrains.kotlin.android" version "1.7.10" apply false +} + +include ":app" diff --git a/devtools_options.yaml b/devtools_options.yaml new file mode 100644 index 0000000..7e7e7f6 --- /dev/null +++ b/devtools_options.yaml @@ -0,0 +1 @@ +extensions: diff --git a/flutter_launcher_icons.yaml b/flutter_launcher_icons.yaml index 6619c35..23a8849 100644 --- a/flutter_launcher_icons.yaml +++ b/flutter_launcher_icons.yaml @@ -1,5 +1,5 @@ -flutter_icons: +flutter_launcher_icons: android: "launcher_icon" ios: true - image_path: "images/appIconNoticeBoard.jpg" + image_path: "images/app-icon.png" min_sdk_android: 21 \ No newline at end of file diff --git a/images/app-icon.png b/images/app-icon.png new file mode 100644 index 0000000..a16b25f Binary files /dev/null and b/images/app-icon.png differ diff --git a/images/appIconNoticeBoard.jpg b/images/appIconNoticeBoard.jpg deleted file mode 100644 index 705d4a6..0000000 Binary files a/images/appIconNoticeBoard.jpg and /dev/null differ diff --git a/images/appIconNoticeBoard192.jpg b/images/appIconNoticeBoard192.jpg deleted file mode 100644 index 9806f54..0000000 Binary files a/images/appIconNoticeBoard192.jpg and /dev/null differ diff --git a/images/icons/discord.png b/images/icons/discord.png deleted file mode 100644 index 06737ab..0000000 Binary files a/images/icons/discord.png and /dev/null differ diff --git a/images/icons/facebook.png b/images/icons/facebook.png deleted file mode 100644 index 2a7ae3e..0000000 Binary files a/images/icons/facebook.png and /dev/null differ diff --git a/images/icons/github.png b/images/icons/github.png deleted file mode 100644 index 291af4c..0000000 Binary files a/images/icons/github.png and /dev/null differ diff --git a/images/icons/instagram.png b/images/icons/instagram.png deleted file mode 100644 index 7113f2c..0000000 Binary files a/images/icons/instagram.png and /dev/null differ diff --git a/images/icons/linkedin.png b/images/icons/linkedin.png deleted file mode 100644 index eac6de8..0000000 Binary files a/images/icons/linkedin.png and /dev/null differ diff --git a/images/icons/whatsapp.png b/images/icons/whatsapp.png deleted file mode 100644 index 2a559d8..0000000 Binary files a/images/icons/whatsapp.png and /dev/null differ diff --git a/images/mitBuilding.jpeg b/images/mitBuilding.jpeg deleted file mode 100644 index b2cfc6d..0000000 Binary files a/images/mitBuilding.jpeg and /dev/null differ diff --git a/images/mitBuilding.png b/images/mitBuilding.png new file mode 100644 index 0000000..573607d Binary files /dev/null and b/images/mitBuilding.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png index ab777f8..ea74b3e 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png index 8098a0a..41d2260 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png index 6ee5662..38d4b54 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png index d484a16..4600d16 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png index bea03d5..5a5df34 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png index e2281d5..3d94b33 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png index dbf2b49..bba3606 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png index 6ee5662..38d4b54 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png index 5a151d6..aa694aa 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png index 32161e9..4ed8949 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png index 75fa7cd..fc5fe5b 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png index e29d178..7141800 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png index cec7f1d..e734628 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png index f0d516e..2a6e767 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png index 32161e9..4ed8949 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png index 2d53042..b73388e 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png index acdd68b..f203a7f 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png index 24f5917..f40e01a 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png index dcf8052..371b228 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png index 98bdf9d..7fd372e 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png index 4a18d4e..b51f551 100644 Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/lib/controllers/contributors_controller.dart b/lib/controllers/contributors_controller.dart new file mode 100644 index 0000000..7d7de5d --- /dev/null +++ b/lib/controllers/contributors_controller.dart @@ -0,0 +1,14 @@ +import 'package:get/get.dart'; +import 'package:noticeboard/models/contributor.dart'; +import 'package:noticeboard/repositories/contributors_repo.dart'; + +class ContributorController extends GetxController { + final ContributorsRepo _repo = ContributorsRepo(); + final contributors = [].obs; + Future getContributors() async { + var temp = await _repo.getApiData(); + if (temp.length > 0) { + contributors.value = temp; + } + } +} diff --git a/lib/viewmodels/PostViewModel.dart b/lib/controllers/post_controller.dart similarity index 62% rename from lib/viewmodels/PostViewModel.dart rename to lib/controllers/post_controller.dart index 7758d34..d81e709 100644 --- a/lib/viewmodels/PostViewModel.dart +++ b/lib/controllers/post_controller.dart @@ -1,15 +1,13 @@ -import 'dart:convert'; - import 'package:get/get.dart'; -import 'package:notice_board/models/Post.dart'; -import 'package:notice_board/repositories/PostRepo.dart'; +import 'package:noticeboard/models/post.dart'; +import 'package:noticeboard/repositories/post_repo.dart'; -class PostViewModel extends GetxController { +class PostController extends GetxController { final PostRepo _repo = PostRepo(); final posts = Posts(ms: 0, query: "", result: []).obs; Future fetchPosts() async { var temp = await _repo.getPosts(); - if (temp.result.length > 0) { + if (temp.result.isNotEmpty) { // rawPostResponse = RawPostResponse.fromJson(jsonDecode(temp)); // posts.value = rawPostResponse.data; posts.value = temp; diff --git a/lib/main.dart b/lib/main.dart index 8b82e2a..561db8b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,31 +1,28 @@ import 'package:flutter/material.dart'; import 'package:get/get.dart'; -import 'package:notice_board/viewmodels/ContributorsViewModel.dart'; -import 'package:notice_board/viewmodels/PostViewModel.dart'; -import 'package:flutter_dotenv/flutter_dotenv.dart'; -import 'package:notice_board/views/mainPages/TabNavigator.dart'; -import 'package:notice_board/views/mainPages/homeScreen.dart'; -import 'models/darkThemeProvider.dart'; +import 'package:noticeboard/controllers/contributors_controller.dart'; +import 'package:noticeboard/controllers/post_controller.dart'; +import 'package:noticeboard/views/mainPages/tab_navigator.dart'; void main(List args) async { - await dotenv.load(fileName: ".env"); runApp(const MainApp()); } class MainApp extends StatelessWidget { - const MainApp({Key? key}) : super(key: key); + const MainApp({super.key}); @override Widget build(BuildContext context) { - final PostViewModel controller = Get.put(PostViewModel()); - final ContributorsViewModel controller2 = Get.put(ContributorsViewModel()); - controller.fetchPosts(); - controller2.getContributors(); + final PostController postController = Get.put(PostController()); + final ContributorController contributorController = + Get.put(ContributorController()); + postController.fetchPosts(); + contributorController.getContributors(); return GetMaterialApp( debugShowCheckedModeBanner: false, title: 'Notice Board', theme: ThemeData(primarySwatch: primaryBlack, fontFamily: "Lufga"), - home: TabNavigator()); + home: const TabNavigator()); } } diff --git a/lib/models/contributorObject.dart b/lib/models/contributor.dart similarity index 100% rename from lib/models/contributorObject.dart rename to lib/models/contributor.dart diff --git a/lib/models/styles.dart b/lib/models/styles.dart index 267059d..d5d3488 100644 --- a/lib/models/styles.dart +++ b/lib/models/styles.dart @@ -1,4 +1,3 @@ -import 'dart:ui'; import 'package:flutter/material.dart'; class Styles { @@ -9,8 +8,6 @@ class Styles { backgroundColor: isDarkTheme ? Colors.black : const Color(0xffF1F5FB), indicatorColor: isDarkTheme ? const Color(0xff0E1D36) : const Color(0xffCBDCF8), - buttonColor: - isDarkTheme ? const Color(0xff3B3B3B) : const Color(0xffF1F5FB), hintColor: isDarkTheme ? const Color(0xff280C0B) : const Color(0xffEECED3), highlightColor: diff --git a/lib/repositories/ContributorsRepo.dart b/lib/repositories/ContributorsRepo.dart deleted file mode 100644 index 153a779..0000000 --- a/lib/repositories/ContributorsRepo.dart +++ /dev/null @@ -1,35 +0,0 @@ -import 'package:get/route_manager.dart'; -import 'package:http/http.dart'; -import 'package:notice_board/views/components/contributorsList.dart'; -import 'package:notice_board/views/mainPages/FeedbackPage.dart'; -import 'package:notice_board/models/contributorObject.dart'; -import 'package:url_launcher/url_launcher.dart'; -import 'dart:convert'; - -class ContributorsRepo{ - Future getApiData() async { - var url = Uri.parse( - "https://api.github.com/repos/CodeX-MIT-BLR/NoticeBoard/contributors"); - Response response = await get(url); - if (response.statusCode == 200) { - final data = jsonDecode(response.body); - - // final List contributors = List.from(data); - // print(contributors[1]); - final List contributors = - contributorFromJson(response.body.toString()); - return contributors; - } - } - - Future _launchURL(String url) async { - final Uri uri = Uri(scheme: "https", host: url); - if (!await launchUrl( - uri, - mode: LaunchMode.externalApplication, - )) { - throw "Can not launch url"; - } - } - -} \ No newline at end of file diff --git a/lib/repositories/contributors_repo.dart b/lib/repositories/contributors_repo.dart new file mode 100644 index 0000000..398bf7c --- /dev/null +++ b/lib/repositories/contributors_repo.dart @@ -0,0 +1,15 @@ +import 'package:http/http.dart'; +import 'package:noticeboard/models/contributor.dart'; + +class ContributorsRepo { + Future getApiData() async { + var url = Uri.parse( + "https://api.github.com/repos/mitblr-club/noticeboard/contributors"); + Response response = await get(url); + if (response.statusCode == 200) { + final List contributors = + contributorFromJson(response.body.toString()); + return contributors; + } + } +} diff --git a/lib/repositories/PostRepo.dart b/lib/repositories/post_repo.dart similarity index 77% rename from lib/repositories/PostRepo.dart rename to lib/repositories/post_repo.dart index a440805..8455222 100644 --- a/lib/repositories/PostRepo.dart +++ b/lib/repositories/post_repo.dart @@ -1,8 +1,5 @@ -import 'dart:convert'; -import 'dart:io'; import 'package:http/http.dart' as http; -import 'package:flutter_dotenv/flutter_dotenv.dart'; -import 'package:notice_board/models/Post.dart'; +import 'package:noticeboard/models/post.dart'; class PostRepo { // final client = http.Client(); @@ -46,7 +43,7 @@ class PostRepo { Future getPosts() async { try { var url = - 'https://77w5symg.api.sanity.io/v2021-10-21/data/query/production?query=*%5BPublished%20%3D%3D%20true%5D%7C%20order(order%20asc)%7B%0A...%2C%0A%20%20%22ImageUrl%22%3A%20mainImage.asset%20-%3E%20url%0A%20%20%0A%7D'; + 'https://77w5symg.api.sanity.io/v2021-10-21/data/query/production?query=*%5BPublished%20%3D%3D%20true%5D%7C%20order(order%20asc)%7B%0A...%2C%0A%20%20%22ImageUrl%22%3A%20mainImage.asset%20-%3E%20url%0A%20%20%0A%7D'; var response = await _client.get(Uri.parse(url)); if (response.statusCode == 200) { @@ -54,7 +51,6 @@ class PostRepo { } } catch (_) { print(_.toString()); - print("ayoooo something went wrong"); } return Posts(ms: 0, query: "", result: []); } diff --git a/lib/viewmodels/ContributorsViewModel.dart b/lib/viewmodels/ContributorsViewModel.dart deleted file mode 100644 index 2f6ccb3..0000000 --- a/lib/viewmodels/ContributorsViewModel.dart +++ /dev/null @@ -1,16 +0,0 @@ - -import 'package:get/get.dart'; -import 'package:notice_board/models/contributorObject.dart'; -import 'package:notice_board/repositories/ContributorsRepo.dart'; - -class ContributorsViewModel extends GetxController{ -final ContributorsRepo _repo = ContributorsRepo(); -final contributors = [].obs; -Future getContributors() async -{ - var temp = await _repo.getApiData(); - if(temp.length>0){ - contributors.value = temp; - } -} -} \ No newline at end of file diff --git a/lib/views/components/DisplayPosts.dart b/lib/views/components/DisplayPosts.dart deleted file mode 100644 index 54dad7f..0000000 --- a/lib/views/components/DisplayPosts.dart +++ /dev/null @@ -1,21 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:notice_board/models/Post.dart'; - -class DisplayPosts extends StatelessWidget { - final Posts posts; - const DisplayPosts({Key? key, required this.posts}) : super(key: key); - - @override - Widget build(BuildContext context) { - return Column( - crossAxisAlignment: CrossAxisAlignment.center, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - ListView.builder( - itemCount: posts.result.length, - itemBuilder: (context, index) { - return Container(); - }) - ]); - } -} diff --git a/lib/views/components/NoticeCard.dart b/lib/views/components/NoticeCard.dart deleted file mode 100644 index e69de29..0000000 diff --git a/lib/views/components/contributorsList.dart b/lib/views/components/contributor_list.dart similarity index 100% rename from lib/views/components/contributorsList.dart rename to lib/views/components/contributor_list.dart diff --git a/lib/views/components/display_posts.dart b/lib/views/components/display_posts.dart new file mode 100644 index 0000000..11b56e6 --- /dev/null +++ b/lib/views/components/display_posts.dart @@ -0,0 +1,21 @@ +import 'package:flutter/material.dart'; +import 'package:noticeboard/models/post.dart'; + +class DisplayPosts extends StatelessWidget { + final Posts posts; + const DisplayPosts({super.key, required this.posts}); + + @override + Widget build(BuildContext context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + ListView.builder( + itemCount: posts.result.length, + itemBuilder: (context, index) { + return Container(); + }) + ]); + } +} diff --git a/lib/views/components/drawerView.dart b/lib/views/components/drawer_view.dart similarity index 88% rename from lib/views/components/drawerView.dart rename to lib/views/components/drawer_view.dart index dcaf826..dbbf5d4 100644 --- a/lib/views/components/drawerView.dart +++ b/lib/views/components/drawer_view.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:get/route_manager.dart'; -import 'package:notice_board/views/mainPages/ContributorsPage.dart'; +import 'package:noticeboard/views/mainPages/contributors_page.dart'; import 'package:url_launcher/url_launcher.dart'; class DrawerView extends StatelessWidget { @@ -27,7 +27,7 @@ class DrawerView extends StatelessWidget { DrawerHeader( decoration: BoxDecoration( image: DecorationImage( - image: const AssetImage("images/mitBuilding.jpeg"), + image: const AssetImage("images/mitBuilding.png"), fit: BoxFit.cover, colorFilter: ColorFilter.mode( Colors.black.withOpacity(0.4), BlendMode.darken))), @@ -39,7 +39,7 @@ class DrawerView extends StatelessWidget { ListTile( leading: IconButton( onPressed: () { - Get.to(ContributorsPage()); + Get.to(const ContributorsPage()); }, icon: const Icon( Icons.people, @@ -54,7 +54,7 @@ class DrawerView extends StatelessWidget { ), ), onTap: () { - Get.to(ContributorsPage()); + Get.to(const ContributorsPage()); }, ), ListTile( @@ -71,13 +71,13 @@ class DrawerView extends StatelessWidget { ), onTap: () => _launchURL(""), ), - const SizedBox( + const SizedBox( height: 50, ), const Column( children: [ Text( - "Brought to you by CodeX MIT-BLR", + "Brought to you by mitblr.club", style: TextStyle(color: Colors.grey), ), Image( diff --git a/lib/models/darkThemeProvider.dart b/lib/views/components/notice_card.dart similarity index 100% rename from lib/models/darkThemeProvider.dart rename to lib/views/components/notice_card.dart diff --git a/lib/views/components/noticeList.dart b/lib/views/components/notice_list.dart similarity index 92% rename from lib/views/components/noticeList.dart rename to lib/views/components/notice_list.dart index 0fd7d5e..42b259f 100644 --- a/lib/views/components/noticeList.dart +++ b/lib/views/components/notice_list.dart @@ -1,11 +1,11 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:notice_board/models/Post.dart'; -import 'package:notice_board/views/mainPages/infoScreen.dart'; +import 'package:noticeboard/models/post.dart'; +import 'package:noticeboard/views/mainPages/info_screen.dart'; class NoticeList extends StatefulWidget { final Posts noticeArray; - NoticeList(this.noticeArray); + const NoticeList({super.key, required this.noticeArray}); @override State createState() => _NoticeListState(); @@ -70,7 +70,9 @@ class _NoticeListState extends State { Navigator.push( context, MaterialPageRoute( - builder: (context) => InfoScreen(nt))); + builder: (context) => InfoScreen( + infoNotice: nt, + ))); HapticFeedback.heavyImpact(); }, style: ButtonStyle( diff --git a/lib/views/components/PostCard.dart b/lib/views/components/post_card.dart similarity index 78% rename from lib/views/components/PostCard.dart rename to lib/views/components/post_card.dart index 00cd5bd..fad29c4 100644 --- a/lib/views/components/PostCard.dart +++ b/lib/views/components/post_card.dart @@ -1,5 +1,4 @@ import 'package:flutter/material.dart'; -import 'package:flutter_dotenv/flutter_dotenv.dart'; class PostCard extends StatelessWidget { final String title, @@ -9,14 +8,13 @@ class PostCard extends StatelessWidget { publishedAt, image; const PostCard( - {Key? key, + {super.key, required this.title, required this.description, required this.startDateTime, required this.endDateTime, required this.publishedAt, - required this.image}) - : super(key: key); + required this.image}); @override Widget build(BuildContext context) { @@ -25,15 +23,13 @@ class PostCard extends StatelessWidget { return Card( elevation: 10.0, child: Column(children: [ - image != null - ? FadeInImage.assetNetwork( - placeholder: 'images/placeholder.jpeg', image: image) - : Image.network(""), + FadeInImage.assetNetwork( + placeholder: 'images/placeholder.jpeg', image: image), ListTile( title: Text(title), subtitle: Text(description), ), - Row( + const Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ // Text( diff --git a/lib/views/mainPages/ClubInfoPage.dart b/lib/views/mainPages/ClubInfoPage.dart deleted file mode 100644 index 5f1c8c0..0000000 --- a/lib/views/mainPages/ClubInfoPage.dart +++ /dev/null @@ -1,116 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:flutter/src/widgets/framework.dart'; -import 'package:flutter/src/widgets/placeholder.dart'; -import 'package:url_launcher/url_launcher.dart'; -import 'package:notice_board/models/Department.dart'; - -class ClubInfoPage extends StatelessWidget { - ClubInfoPage({super.key}); - - _launchURLGithub(String url) async { - final uri = Uri.parse(url); - if (await canLaunchUrl(uri)) { - await launchUrl(uri); - } else { - throw 'Could not launch $url'; - } - } - - final departments = [ - Department("App Development", "Kevin Thomas"), - Department("Open Source", "Chandan CV & Astitva Agarwal"), - Department( - "Game Development", "Deepro Chakravorty, Aryan D & Arnav Upadhyay"), - Department("Competitive Programming", "Mayukh Saha & Ojas Joshi"), - Department("Software Development", "Abhigyan Tripathi"), - Department("Information Technology", "Raghav Gupta"), - Department("Research & Development", "Ayraf"), - Department("Social Media", "Vaishnavi D & Nakul Kamath"), - Department("Creative", "Amritanshu Kumar"), - ]; - - final socialLinks = []; - - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - title: Text( - "About CodeX", - style: TextStyle(color: Colors.black), - ), - leading: const BackButton( - color: Colors.black, - ), - backgroundColor: Colors.transparent, - shadowColor: Colors.transparent, - ), - body: Padding( - padding: const EdgeInsets.all(12.0), - child: SingleChildScrollView( - child: Column( - crossAxisAlignment: CrossAxisAlignment.stretch, - children: [ - const Image( - image: AssetImage("images/cxLogoColor.png"), - height: 100, - ), - ElevatedButton.icon( - onPressed: () { - _launchURLGithub( - "https://linktr.ee/CodeXmitb?fbclid=PAAaZRlBJzUdmpJyvdMh1NPFzyOmcS04tHldmILCHpRk0tX5QmEdPv_TdG_T8"); - }, - icon: Icon(Icons.link), - label: Text("Social Media")), - SizedBox( - height: 20, - ), - const Text( - "This app was made by the CodeX App Development and CodeX Open Source departments at MIT-Bengaluru. CodeX is the premier technical club at MIT and we encourage all our members to learn and contribute to projects by showing their creativity through code.", - textAlign: TextAlign.center, - style: TextStyle(color: Colors.black, fontSize: 15), - ), - Padding( - padding: const EdgeInsets.fromLTRB(0, 15, 0, 8), - child: Text( - "Our Departments", - style: TextStyle(fontWeight: FontWeight.w500, fontSize: 20), - textAlign: TextAlign.center, - ), - ), - Column( - children: departments.map((department) { - return Card( - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(12)), - color: Colors.white, - child: Padding( - padding: const EdgeInsets.all(8.0), - child: Row(children: [ - Expanded( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text(department.name), - Text( - department.head, - style: TextStyle( - color: Colors.grey, - fontSize: 12, - fontWeight: FontWeight.w500), - ) - ], - ), - ), - ]), - ), - ); - }).toList(), - ) - ], - ), - ), - ), - ); - } -} diff --git a/lib/views/mainPages/FeedbackPage.dart b/lib/views/mainPages/FeedbackPage.dart deleted file mode 100644 index e129b3c..0000000 --- a/lib/views/mainPages/FeedbackPage.dart +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:flutter/material.dart'; -class FeedbackPage extends StatelessWidget { - const FeedbackPage({Key? key}) : super(key: key); - - - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - title:const Text(" Feedback and ideas"), - ), - body: Container() - ); - } -} \ No newline at end of file diff --git a/lib/views/mainPages/ContributorsPage.dart b/lib/views/mainPages/contributors_page.dart similarity index 87% rename from lib/views/mainPages/ContributorsPage.dart rename to lib/views/mainPages/contributors_page.dart index bbf845f..8a65be8 100644 --- a/lib/views/mainPages/ContributorsPage.dart +++ b/lib/views/mainPages/contributors_page.dart @@ -1,10 +1,10 @@ import 'package:flutter/material.dart'; import 'package:get/get.dart'; -import 'package:notice_board/viewmodels/ContributorsViewModel.dart'; import 'package:url_launcher/url_launcher.dart'; +import 'package:noticeboard/controllers/contributors_controller.dart'; class ContributorsPage extends StatelessWidget { - ContributorsPage({Key? key}) : super(key: key); + const ContributorsPage({super.key}); _launchURLGithub(String url) async { final uri = Uri.parse(url); @@ -17,7 +17,7 @@ class ContributorsPage extends StatelessWidget { @override Widget build(BuildContext context) { - return GetX(builder: (controller) { + return GetX(builder: (controller) { return Scaffold( backgroundColor: Colors.white, appBar: AppBar( @@ -42,8 +42,8 @@ class ContributorsPage extends StatelessWidget { onPressed: () { _launchURLGithub(currentData.htmlUrl); }, - icon: Icon(Icons.open_in_new), - label: Text("GitHub"), + icon: const Icon(Icons.open_in_new), + label: const Text("GitHub"), ), leading: CircleAvatar( backgroundImage: NetworkImage(currentData.avatarUrl), diff --git a/lib/views/mainPages/feedback_page.dart b/lib/views/mainPages/feedback_page.dart new file mode 100644 index 0000000..e0b37f6 --- /dev/null +++ b/lib/views/mainPages/feedback_page.dart @@ -0,0 +1,14 @@ +import 'package:flutter/material.dart'; + +class FeedbackPage extends StatelessWidget { + const FeedbackPage({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text("Feedback and ideas"), + ), + body: Container()); + } +} diff --git a/lib/views/mainPages/homeScreen.dart b/lib/views/mainPages/homeScreen.dart deleted file mode 100644 index 6843b47..0000000 --- a/lib/views/mainPages/homeScreen.dart +++ /dev/null @@ -1,73 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:get/get.dart'; -import 'package:google_nav_bar/google_nav_bar.dart'; -import 'package:notice_board/viewmodels/PostViewModel.dart'; -import 'package:notice_board/views/mainPages/ClubInfoPage.dart'; -import '../components/noticeList.dart'; -import '../components/drawerView.dart'; -import 'package:flutter/services.dart'; - -class HomeScreen extends StatefulWidget { - const HomeScreen({super.key}); - - @override - State createState() => _HomeScreenState(); -} - -class _HomeScreenState extends State { - @override - Widget build(BuildContext context) { - return GetX(builder: (controller) { - return Scaffold( - floatingActionButton: Wrap( - direction: Axis.horizontal, - children: [ - Container( - margin: const EdgeInsets.all(10), - child: FloatingActionButton( - onPressed: () { - Navigator.push( - context, - MaterialPageRoute( - builder: (context) => ClubInfoPage())); - HapticFeedback.heavyImpact(); - }, - backgroundColor: Colors.white, - elevation: 0, - child: - const Image(image: AssetImage("images/cxLogoColor.png")), - )), - Container( - margin: EdgeInsets.all(10), - child: FloatingActionButton( - onPressed: () { - controller.fetchPosts(); - HapticFeedback.heavyImpact(); - }, - backgroundColor: Colors.white, - elevation: 0, - child: const Icon( - Icons.replay_outlined, - color: Colors.orange, - ), - )), - ], - ), - appBar: AppBar( - iconTheme: IconThemeData(color: Colors.black), - title: const Text( - "MAHE Bangalore Notice Board", - style: TextStyle(color: Colors.black, fontSize: 17), - ), - backgroundColor: Colors.transparent, - shadowColor: Colors.transparent, - ), - body: NoticeList(controller.posts.value), - drawer: const Drawer( - backgroundColor: Colors.black, - child: DrawerView(), - ), - ); - }); - } -} diff --git a/lib/views/mainPages/HomePage.dart b/lib/views/mainPages/home_page.dart similarity index 66% rename from lib/views/mainPages/HomePage.dart rename to lib/views/mainPages/home_page.dart index f74a13f..5163be8 100644 --- a/lib/views/mainPages/HomePage.dart +++ b/lib/views/mainPages/home_page.dart @@ -1,16 +1,16 @@ import 'package:flutter/material.dart'; import 'package:get/get.dart'; -import 'package:notice_board/viewmodels/PostViewModel.dart'; -import 'package:notice_board/views/components/PostCard.dart'; -import 'package:notice_board/views/mainPages/ContributorsPage.dart'; -import 'package:notice_board/views/mainPages/FeedbackPage.dart'; +import 'package:noticeboard/controllers/post_controller.dart'; +import 'package:noticeboard/views/components/post_card.dart'; +import 'package:noticeboard/views/mainPages/contributors_page.dart'; +import 'package:noticeboard/views/mainPages/feedback_page.dart'; class HomePage extends StatelessWidget { - const HomePage({Key? key}) : super(key: key); + const HomePage({super.key}); @override Widget build(BuildContext context) { - return GetX(builder: (controller) { + return GetX(builder: (controller) { return Scaffold( backgroundColor: Colors.black, floatingActionButton: Wrap( @@ -18,32 +18,32 @@ class HomePage extends StatelessWidget { direction: Axis.horizontal, //use vertical to show on vertical axis children: [ Container( - margin: EdgeInsets.all(10), + margin: const EdgeInsets.all(10), child: FloatingActionButton( onPressed: () { //action code for button 1 }, - child: Icon(Icons.add), + child: const Icon(Icons.add), )), //button first Container( - margin: EdgeInsets.all(10), + margin: const EdgeInsets.all(10), child: FloatingActionButton( onPressed: () { //action code for button 2 }, backgroundColor: Colors.deepPurpleAccent, - child: Icon(Icons.add), + child: const Icon(Icons.add), )), // button second Container( - margin: EdgeInsets.all(10), + margin: const EdgeInsets.all(10), child: FloatingActionButton( onPressed: () { //action code for button 3 }, backgroundColor: Colors.deepOrangeAccent, - child: Icon(Icons.add), + child: const Icon(Icons.add), )), // button third // Add more buttons here @@ -60,12 +60,12 @@ class HomePage extends StatelessWidget { title: const Text("Manipal Notice Board"), actions: [ IconButton( - onPressed: () => {Get.to(ContributorsPage())}, + onPressed: () => {Get.to(const ContributorsPage())}, icon: const Icon(Icons.groups), tooltip: "meet the team and contributors", ), IconButton( - onPressed: () => {Get.to(FeedbackPage())}, + onPressed: () => {Get.to(const FeedbackPage())}, icon: const Icon(Icons.feedback), tooltip: "Send us your ideas and feedback", ), @@ -83,19 +83,24 @@ class HomePage extends StatelessWidget { child: SizedBox( width: 300.0, child: ListView.builder( - itemCount: controller.posts.value.result.isNotEmpty - ? controller.posts.value.result.length - : 0, + itemCount: + controller.posts.value.result.isNotEmpty + ? controller.posts.value.result.length + : 0, itemBuilder: ((context, index) { - var currentData = controller.posts.value.result[index]; + var currentData = + controller.posts.value.result[index]; return PostCard( title: currentData.title, description: currentData.shortDescription, - startDateTime: currentData.startTime.toIso8601String(), - endDateTime: currentData.endTime.toIso8601String(), - publishedAt: currentData.publishedAt.toIso8601String(), + startDateTime: currentData.startTime + .toIso8601String(), + endDateTime: + currentData.endTime.toIso8601String(), + publishedAt: currentData.publishedAt + .toIso8601String(), image: currentData.imageUrl, - ); + ); })))) ]) ], diff --git a/lib/views/mainPages/home_screen.dart b/lib/views/mainPages/home_screen.dart new file mode 100644 index 0000000..c68a222 --- /dev/null +++ b/lib/views/mainPages/home_screen.dart @@ -0,0 +1,53 @@ +import 'package:flutter/material.dart'; +import 'package:get/get.dart'; +import 'package:noticeboard/controllers/post_controller.dart'; +import 'package:noticeboard/views/components/notice_list.dart'; +import 'package:noticeboard/views/components/drawer_view.dart'; +import 'package:flutter/services.dart'; + +class HomeScreen extends StatefulWidget { + const HomeScreen({super.key}); + + @override + State createState() => _HomeScreenState(); +} + +class _HomeScreenState extends State { + @override + Widget build(BuildContext context) { + return GetX(builder: (controller) { + return Scaffold( + floatingActionButton: Container( + margin: const EdgeInsets.all(10), + child: FloatingActionButton( + onPressed: () { + controller.fetchPosts(); + HapticFeedback.heavyImpact(); + }, + backgroundColor: Colors.white, + elevation: 0, + child: const Icon( + Icons.replay_outlined, + color: Colors.orange, + ), + )), + appBar: AppBar( + iconTheme: const IconThemeData(color: Colors.black), + title: const Text( + "noticeboard.", + style: TextStyle(color: Colors.black, fontSize: 17), + ), + backgroundColor: Colors.transparent, + shadowColor: Colors.transparent, + ), + body: NoticeList( + noticeArray: controller.posts.value, + ), + drawer: const Drawer( + backgroundColor: Colors.black, + child: DrawerView(), + ), + ); + }); + } +} diff --git a/lib/views/mainPages/infoScreen.dart b/lib/views/mainPages/info_screen.dart similarity index 92% rename from lib/views/mainPages/infoScreen.dart rename to lib/views/mainPages/info_screen.dart index 2d0e3e2..dad1411 100644 --- a/lib/views/mainPages/infoScreen.dart +++ b/lib/views/mainPages/info_screen.dart @@ -1,13 +1,10 @@ import 'package:flutter/material.dart'; -import 'package:flutter/src/widgets/framework.dart'; -import 'package:flutter/src/widgets/placeholder.dart'; -import 'package:notice_board/models/Post.dart'; -import 'package:intl/intl.dart'; +import 'package:noticeboard/models/post.dart'; class InfoScreen extends StatelessWidget { - Result infoNotice; + final Result infoNotice; - InfoScreen(this.infoNotice); + InfoScreen({super.key, required this.infoNotice}); final tagsList = ["Solstice Fest", "Events", "News", "Student Council"]; @@ -37,12 +34,12 @@ class InfoScreen extends StatelessWidget { fontWeight: FontWeight.w500, letterSpacing: -1), ), - SizedBox( + const SizedBox( height: 5, ), Text( "Published on ${infoNotice.date.day}/${infoNotice.date.month}/${infoNotice.date.year}", - style: TextStyle( + style: const TextStyle( fontWeight: FontWeight.w500, color: Colors.grey), ), const SizedBox( @@ -56,7 +53,7 @@ class InfoScreen extends StatelessWidget { infoNotice.imageUrl, ), ), - SizedBox( + const SizedBox( height: 10, ), Column( diff --git a/lib/views/mainPages/settingsScreen.dart b/lib/views/mainPages/settings_screen.dart similarity index 96% rename from lib/views/mainPages/settingsScreen.dart rename to lib/views/mainPages/settings_screen.dart index 8aa2a69..2c567d3 100644 --- a/lib/views/mainPages/settingsScreen.dart +++ b/lib/views/mainPages/settings_screen.dart @@ -1,5 +1,4 @@ import 'package:flutter/material.dart'; -import 'package:flutter/src/widgets/framework.dart'; class SettingsScreen extends StatefulWidget { const SettingsScreen({super.key}); @@ -8,7 +7,6 @@ class SettingsScreen extends StatefulWidget { } class _SettingsScreenState extends State { - @override var notificationsEnabled = false; var darkModeEnabled = false; @@ -26,6 +24,7 @@ class _SettingsScreenState extends State { }); } + @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.white, @@ -92,7 +91,7 @@ class _SettingsScreenState extends State { const Column( children: [ Text( - "Brought to you by CodeX MIT-BLR", + "Brought to you by mitblr.club", style: TextStyle(color: Colors.grey), ), Image( diff --git a/lib/views/mainPages/TabNavigator.dart b/lib/views/mainPages/tab_navigator.dart similarity index 93% rename from lib/views/mainPages/TabNavigator.dart rename to lib/views/mainPages/tab_navigator.dart index a8d84e4..df61c42 100644 --- a/lib/views/mainPages/TabNavigator.dart +++ b/lib/views/mainPages/tab_navigator.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:google_nav_bar/google_nav_bar.dart'; -import 'homeScreen.dart'; +import 'home_screen.dart'; class TabNavigator extends StatefulWidget { const TabNavigator({super.key}); @@ -24,7 +24,7 @@ class _TabNavigatorState extends State { child: _widgetOptions.elementAt(_selectedIndex), ), bottomNavigationBar: Container( - padding: EdgeInsets.symmetric(horizontal: 15, vertical: 18), + padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 18), color: Colors.black, child: GNav( color: Colors.white, diff --git a/pubspec.lock b/pubspec.lock index 15625a7..7c19e5a 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,18 +5,18 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: eb376e9acf6938204f90eb3b1f00b578640d3188b4c8a8ec054f9f479af8d051 + sha256: "0b2f2bd91ba804e53a61d757b986f89f1f9eaed5b11e4b2f5a2468d86d6c9fc7" url: "https://pub.dev" source: hosted - version: "64.0.0" + version: "67.0.0" analyzer: dependency: transitive description: name: analyzer - sha256: "69f54f967773f6c26c7dcb13e93d7ccee8b17a641689da39e878d5cf13b06893" + sha256: "37577842a27e4338429a1cbc32679d508836510b056f1eedf0c8d20e39c1383d" url: "https://pub.dev" source: hosted - version: "6.2.0" + version: "6.4.1" archive: dependency: transitive description: @@ -109,10 +109,10 @@ packages: dependency: transitive description: name: built_value - sha256: a3ec2e0f967bc47f69f95009bb93db936288d61d5343b9436e378b28a2f830c6 + sha256: fedde275e0a6b798c3296963c5cd224e3e1b55d0e478d5b7e65e6b540f363a0e url: "https://pub.dev" source: hosted - version: "8.9.0" + version: "8.9.1" cached_network_image: dependency: "direct main" description: @@ -157,10 +157,10 @@ packages: dependency: transitive description: name: cli_util - sha256: "66f86e916d285c1a93d3b79587d94bd71984a66aac4ff74e524cfa7877f1395c" + sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19 url: "https://pub.dev" source: hosted - version: "0.3.5" + version: "0.4.1" clock: dependency: transitive description: @@ -181,10 +181,10 @@ packages: dependency: transitive description: name: collection - sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a url: "https://pub.dev" source: hosted - version: "1.17.2" + version: "1.18.0" convert: dependency: transitive description: @@ -213,26 +213,18 @@ packages: dependency: transitive description: name: dart_style - sha256: "40ae61a5d43feea6d24bd22c0537a6629db858963b99b4bc1c3db80676f32368" + sha256: "99e066ce75c89d6b29903d788a7bb9369cf754f7b24bf70bf4b6d6d6b26853b9" url: "https://pub.dev" source: hosted - version: "2.3.4" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.dev" - source: hosted - version: "1.3.1" + version: "2.3.6" ffi: dependency: transitive description: name: ffi - sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" + sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21" url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.2" file: dependency: transitive description: @@ -271,26 +263,21 @@ packages: source: hosted version: "5.1.0" flutter_launcher_icons: - dependency: "direct main" + dependency: "direct dev" description: name: flutter_launcher_icons - sha256: "02dcaf49d405f652b7160e882bacfc02cb497041bb2eab2a49b1c393cf9aac12" + sha256: "526faf84284b86a4cb36d20a5e45147747b7563d921373d4ee0559c54fcdbcea" url: "https://pub.dev" source: hosted - version: "0.12.0" + version: "0.13.1" flutter_lints: dependency: "direct dev" description: name: flutter_lints - sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04 + sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7 url: "https://pub.dev" source: hosted - version: "2.0.3" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" + version: "3.0.1" flutter_web_plugins: dependency: transitive description: flutter @@ -340,10 +327,10 @@ packages: dependency: "direct main" description: name: http - sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" + sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938" url: "https://pub.dev" source: hosted - version: "0.13.6" + version: "1.2.1" http_multi_server: dependency: transitive description: @@ -372,10 +359,10 @@ packages: dependency: "direct main" description: name: intl - sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d" + sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf url: "https://pub.dev" source: hosted - version: "0.18.1" + version: "0.19.0" io: dependency: transitive description: @@ -412,10 +399,10 @@ packages: dependency: transitive description: name: lints - sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" + sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "3.0.0" logging: dependency: transitive description: @@ -428,34 +415,34 @@ packages: dependency: transitive description: name: matcher - sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb url: "https://pub.dev" source: hosted - version: "0.12.16" + version: "0.12.16+1" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.8.0" meta: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.11.0" mime: dependency: transitive description: name: mime - sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "1.0.5" nested: dependency: transitive description: @@ -484,10 +471,10 @@ packages: dependency: "direct main" description: name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" url: "https://pub.dev" source: hosted - version: "1.8.3" + version: "1.9.0" path_provider: dependency: transitive description: @@ -540,10 +527,10 @@ packages: dependency: transitive description: name: petitparser - sha256: cb3798bef7fc021ac45b308f4b51208a152792445cce0448c9a4ba5879dd8750 + sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27 url: "https://pub.dev" source: hosted - version: "5.4.0" + version: "6.0.2" platform: dependency: transitive description: @@ -580,10 +567,10 @@ packages: dependency: "direct main" description: name: provider - sha256: "9a96a0a19b594dbc5bf0f1f27d2bc67d5f95957359b461cd9feb44ed6ae75096" + sha256: c8a055ee5ce3fd98d6fc872478b03823ffdb448699c6ebdbbc71d59b596fd48c url: "https://pub.dev" source: hosted - version: "6.1.1" + version: "6.1.2" pub_semver: dependency: transitive description: @@ -652,10 +639,10 @@ packages: dependency: transitive description: name: shared_preferences_web - sha256: d762709c2bbe80626ecc819143013cc820fa49ca5e363620ee20a8b15a3e3daf + sha256: "9aee1089b36bd2aafe06582b7d7817fd317ef05fc30e6ba14bff247d0933042a" url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.3.0" shared_preferences_windows: dependency: transitive description: @@ -737,18 +724,18 @@ packages: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" stream_transform: dependency: transitive description: @@ -785,10 +772,10 @@ packages: dependency: transitive description: name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.6.1" timing: dependency: transitive description: @@ -809,10 +796,10 @@ packages: dependency: "direct main" description: name: url_launcher - sha256: c512655380d241a337521703af62d2c122bf7b77a46ff7dd750092aa9433499c + sha256: "0ecc004c62fd3ed36a2ffcbe0dd9700aee63bd7532d0b642a488b1ec310f492e" url: "https://pub.dev" source: hosted - version: "6.2.4" + version: "6.2.5" url_launcher_android: dependency: transitive description: @@ -825,10 +812,10 @@ packages: dependency: transitive description: name: url_launcher_ios - sha256: "75bb6fe3f60070407704282a2d295630cab232991eb52542b18347a8a941df03" + sha256: "9149d493b075ed740901f3ee844a38a00b33116c7c5c10d7fb27df8987fb51d5" url: "https://pub.dev" source: hosted - version: "6.2.4" + version: "6.2.5" url_launcher_linux: dependency: transitive description: @@ -857,10 +844,10 @@ packages: dependency: transitive description: name: url_launcher_web - sha256: "7fd2f55fe86cea2897b963e864dc01a7eb0719ecc65fcef4c1cc3d686d718bb2" + sha256: "3692a459204a33e04bc94f5fb91158faf4f2c8903281ddd82915adecdb1a901d" url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.3.0" url_launcher_windows: dependency: transitive description: @@ -873,10 +860,10 @@ packages: dependency: transitive description: name: uuid - sha256: "22c94e5ad1e75f9934b766b53c742572ee2677c56bc871d850a57dad0f82127f" + sha256: cd210a09f7c18cbe5a02511718e0334de6559871052c90a90c0cca46a4aa81c8 url: "https://pub.dev" source: hosted - version: "4.2.2" + version: "4.3.3" vector_math: dependency: transitive description: @@ -897,26 +884,26 @@ packages: dependency: transitive description: name: web - sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + sha256: "1d9158c616048c38f712a6646e317a3426da10e884447626167240d45209cbad" url: "https://pub.dev" source: hosted - version: "0.1.4-beta" + version: "0.5.0" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b + sha256: "1d8e795e2a8b3730c41b8a98a2dff2e0fb57ae6f0764a1c46ec5915387d257b2" url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "2.4.4" webview_flutter: dependency: "direct main" description: name: webview_flutter - sha256: d81b68e88cc353e546afb93fb38958e3717282c5ac6e5d3be4a4aef9fc3c1413 + sha256: "25e1b6e839e8cbfbd708abc6f85ed09d1727e24e08e08c6b8590d7c65c9a8932" url: "https://pub.dev" source: hosted - version: "4.5.0" + version: "4.7.0" webview_flutter_android: dependency: transitive description: @@ -937,18 +924,18 @@ packages: dependency: transitive description: name: webview_flutter_wkwebview - sha256: "4d062ad505390ecef1c4bfb6001cd857a51e00912cc9dfb66edb1886a9ebd80c" + sha256: "9bf168bccdf179ce90450b5f37e36fe263f591c9338828d6bf09b6f8d0f57f86" url: "https://pub.dev" source: hosted - version: "3.10.2" + version: "3.12.0" win32: dependency: transitive description: name: win32 - sha256: b0f37db61ba2f2e9b7a78a1caece0052564d1bc70668156cf3a29d676fe4e574 + sha256: "464f5674532865248444b4c3daca12bd9bf2d7c47f759ce2617986e7229494a8" url: "https://pub.dev" source: hosted - version: "5.1.1" + version: "5.2.0" xdg_directories: dependency: transitive description: @@ -961,10 +948,10 @@ packages: dependency: transitive description: name: xml - sha256: "5bc72e1e45e941d825fd7468b9b4cc3b9327942649aeb6fc5cdbf135f0a86e84" + sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226 url: "https://pub.dev" source: hosted - version: "6.3.0" + version: "6.5.0" yaml: dependency: transitive description: @@ -974,5 +961,5 @@ packages: source: hosted version: "3.1.2" sdks: - dart: ">=3.1.0 <4.0.0" - flutter: ">=3.13.0" + dart: ">=3.3.0 <4.0.0" + flutter: ">=3.19.0" diff --git a/pubspec.yaml b/pubspec.yaml index d914e95..e470d69 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,4 +1,4 @@ -name: notice_board +name: noticeboard description: An interactive notice board to spread awareness of all the events happening in MAHE BLR # The following line prevents the package from being accidentally published to @@ -32,28 +32,23 @@ dependencies: flutter: sdk: flutter path: any - intl: ^0.18.0 + intl: ^0.19.0 url_launcher: ^6.1.9 google_nav_bar: ^5.0.6 - - - # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 get: ^4.6.5 - http: ^0.13.5 + http: ^1.2.1 json_serializable: ^6.6.1 flutter_dotenv: ^5.0.2 webview_flutter: ^4.0.5 - flutter_launcher_icons: ^0.12.0 cached_network_image: ^3.2.3 shared_preferences: ^2.1.0 provider: ^6.0.5 dev_dependencies: - flutter_test: - sdk: flutter + flutter_launcher_icons: ^0.13.1 build_runner: ^2.3.3 json_annotation: ^4.8.0 @@ -62,7 +57,7 @@ dev_dependencies: # activated in the `analysis_options.yaml` file located at the root of your # package. See that file for information about deactivating specific lint # rules and activating additional ones. - flutter_lints: ^2.0.0 + flutter_lints: ^3.0.1 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec @@ -70,18 +65,11 @@ dev_dependencies: # The following section is specific to Flutter packages. flutter: assets: - - images/mitBuilding.jpeg - - .env + - images/mitBuilding.png - images/placeholder.jpg - images/loading.gif - images/cxlogo.png - images/cxLogoColor.png - - images/icons/instagram.png - - images/icons/facebook.png - - images/icons/github.png - - images/icons/linkedin.png - - images/icons/whatsapp.png - - images/icons/discord.png fonts: - family: Lufga @@ -122,4 +110,4 @@ flutter: # weight: 700 # # For details regarding fonts from package dependencies, - # see https://flutter.dev/custom-fonts/#from-packages + # see https://flutter.dev/custom-fonts/#from-packages \ No newline at end of file