├── .flutter-plugins
├── .flutter-plugins-dependencies
├── .gitignore
├── .idea
├── .gitignore
├── libraries
│ ├── Dart_Packages.xml
│ ├── Dart_SDK.xml
│ ├── Flutter_Plugins.xml
│ └── KotlinJavaRuntime.xml
├── misc.xml
├── modules.xml
└── runConfigurations
│ └── main_dart.xml
├── .metadata
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── jagoteori
│ │ │ │ └── chatgpt
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── chatgpt_logo.png
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ ├── chatgpt_logo.png
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── chatgpt_logo.png
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── chatgpt_logo.png
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── chatgpt_logo.png
│ │ │ └── ic_launcher.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── chatgpt_android.iml
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── bot_bg_splash.png
├── chatgpt_logo.png
├── logo.png
└── top-bg-splash.png
├── chatgpt.iml
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── main.dart
├── model
│ ├── question_answer.dart
│ └── question_answer.freezed.dart
├── theme.dart
├── view
│ ├── chat_screen.dart
│ ├── components
│ │ ├── chatgpt_answer_widget.dart
│ │ ├── loading_widget.dart
│ │ ├── text_input_widget.dart
│ │ └── user_question_widget.dart
│ └── splash_screen.dart
└── viewmodel
│ ├── get_question_answer_bloc.dart
│ ├── get_question_answer_event.dart
│ └── get_question_answer_state.dart
├── pubspec.lock
├── pubspec.yaml
└── test
└── widget_test.dart
/.flutter-plugins:
--------------------------------------------------------------------------------
1 | # This is a generated file; do not edit or check into version control.
2 | path_provider=C:\\Users\\rrido\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\path_provider-2.0.12\\
3 | path_provider_android=C:\\Users\\rrido\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\path_provider_android-2.0.22\\
4 | path_provider_foundation=C:\\Users\\rrido\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\path_provider_foundation-2.1.1\\
5 | path_provider_linux=C:\\Users\\rrido\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\path_provider_linux-2.1.8\\
6 | path_provider_windows=C:\\Users\\rrido\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\path_provider_windows-2.1.3\\
7 |
--------------------------------------------------------------------------------
/.flutter-plugins-dependencies:
--------------------------------------------------------------------------------
1 | {"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider_foundation","path":"C:\\\\Users\\\\rrido\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_foundation-2.1.1\\\\","native_build":true,"dependencies":[]}],"android":[{"name":"path_provider_android","path":"C:\\\\Users\\\\rrido\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_android-2.0.22\\\\","native_build":true,"dependencies":[]}],"macos":[{"name":"path_provider_foundation","path":"C:\\\\Users\\\\rrido\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_foundation-2.1.1\\\\","native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\Users\\\\rrido\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_linux-2.1.8\\\\","native_build":false,"dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"C:\\\\Users\\\\rrido\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\hosted\\\\pub.dev\\\\path_provider_windows-2.1.3\\\\","native_build":false,"dependencies":[]}],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2023-02-20 18:16:49.292920","version":"3.7.3"}
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Project exclude paths
2 | /.dart_tool/
3 | /build/
--------------------------------------------------------------------------------
/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/.idea/libraries/Dart_Packages.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
643 |
644 |
645 |
646 |
647 |
648 |
649 |
650 |
651 |
652 |
653 |
654 |
655 |
656 |
657 |
658 |
659 |
660 |
661 |
662 |
663 |
664 |
665 |
666 |
667 |
668 |
669 |
670 |
671 |
672 |
673 |
674 |
675 |
676 |
677 |
678 |
679 |
680 |
681 |
682 |
683 |
684 |
685 |
686 |
687 |
688 |
689 |
690 |
691 |
692 |
693 |
694 |
695 |
696 |
697 |
698 |
699 |
700 |
701 |
702 |
703 |
704 |
705 |
706 |
707 |
708 |
709 |
710 |
711 |
712 |
713 |
714 |
715 |
716 |
717 |
718 |
719 |
720 |
721 |
722 |
723 |
724 |
725 |
726 |
727 |
728 |
729 |
730 |
731 |
732 |
733 |
734 |
735 |
736 |
737 |
738 |
739 |
740 |
--------------------------------------------------------------------------------
/.idea/libraries/Dart_SDK.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/.idea/libraries/Flutter_Plugins.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/libraries/KotlinJavaRuntime.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.idea/runConfigurations/main_dart.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled.
5 |
6 | version:
7 | revision: 9944297138845a94256f1cf37beb88ff9a8e811a
8 | channel: stable
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: 9944297138845a94256f1cf37beb88ff9a8e811a
17 | base_revision: 9944297138845a94256f1cf37beb88ff9a8e811a
18 | - platform: android
19 | create_revision: 9944297138845a94256f1cf37beb88ff9a8e811a
20 | base_revision: 9944297138845a94256f1cf37beb88ff9a8e811a
21 | - platform: ios
22 | create_revision: 9944297138845a94256f1cf37beb88ff9a8e811a
23 | base_revision: 9944297138845a94256f1cf37beb88ff9a8e811a
24 | - platform: web
25 | create_revision: 9944297138845a94256f1cf37beb88ff9a8e811a
26 | base_revision: 9944297138845a94256f1cf37beb88ff9a8e811a
27 |
28 | # User provided section
29 |
30 | # List of Local paths (relative to this file) that should be
31 | # ignored by the migrate tool.
32 | #
33 | # Files that are not part of the templates will be ignored by default.
34 | unmanaged_files:
35 | - 'lib/main.dart'
36 | - 'ios/Runner.xcodeproj/project.pbxproj'
37 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Muhammad Ridhoi
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # chatgpt
2 |
3 | This is a Flutter-based Chatgpt App with a sleek and modern design.
4 |
5 | 
6 |
7 | ## Installation
8 | To get started, you need to have [Flutter](https://flutter.dev/docs/get-started/install) installed on your machine. Then, follow the instructions below:
9 |
10 | 1. Open the terminal and navigate to the project folder.
11 | 2. Run the command `flutter packages get` to install the required packages.
12 | 3. Run `flutter run` to build and run the debug app on your emulator/phone
13 |
14 | ## Credits
15 |
16 | - [Flutter](https://flutter.dev) for providing an amazing cross-platform framework.
17 |
18 | ## License
19 |
20 | This project is licensed under the [MIT License](https://github.com/rrdhoi/chatgpt/blob/master/LICENSE).
21 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at
17 | # https://dart-lang.github.io/linter/lints/index.html.
18 | #
19 | # Instead of disabling a lint rule for the entire project in the
20 | # section below, it can also be suppressed for a single line of code
21 | # or a specific dart file by using the `// ignore: name_of_lint` and
22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
23 | # producing the lint.
24 | rules:
25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27 |
28 | # Additional information about this file can be found at
29 | # https://dart.dev/guides/language/analysis-options
30 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion flutter.compileSdkVersion
30 | ndkVersion flutter.ndkVersion
31 |
32 | compileOptions {
33 | sourceCompatibility JavaVersion.VERSION_1_8
34 | targetCompatibility JavaVersion.VERSION_1_8
35 | }
36 |
37 | kotlinOptions {
38 | jvmTarget = '1.8'
39 | }
40 |
41 | sourceSets {
42 | main.java.srcDirs += 'src/main/kotlin'
43 | }
44 |
45 | defaultConfig {
46 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
47 | applicationId "com.jagoteori.chatgpt"
48 | // You can update the following values to match your application needs.
49 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
50 | minSdkVersion flutter.minSdkVersion
51 | targetSdkVersion flutter.targetSdkVersion
52 | versionCode flutterVersionCode.toInteger()
53 | versionName flutterVersionName
54 | }
55 |
56 | buildTypes {
57 | release {
58 | // TODO: Add your own signing config for the release build.
59 | // Signing with the debug keys for now, so `flutter run --release` works.
60 | signingConfig signingConfigs.debug
61 | }
62 | }
63 | }
64 |
65 | flutter {
66 | source '../..'
67 | }
68 |
69 | dependencies {
70 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
71 | }
72 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
10 |
18 |
22 |
26 |
27 |
28 |
29 |
30 |
31 |
33 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/jagoteori/chatgpt/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.jagoteori.chatgpt
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/chatgpt_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/android/app/src/main/res/mipmap-hdpi/chatgpt_logo.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/chatgpt_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/android/app/src/main/res/mipmap-mdpi/chatgpt_logo.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/chatgpt_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/android/app/src/main/res/mipmap-xhdpi/chatgpt_logo.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/chatgpt_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/android/app/src/main/res/mipmap-xxhdpi/chatgpt_logo.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/chatgpt_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/android/app/src/main/res/mipmap-xxxhdpi/chatgpt_logo.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.7.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.2.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/chatgpt_android.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
6 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/assets/bot_bg_splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/assets/bot_bg_splash.png
--------------------------------------------------------------------------------
/assets/chatgpt_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/assets/chatgpt_logo.png
--------------------------------------------------------------------------------
/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/assets/logo.png
--------------------------------------------------------------------------------
/assets/top-bg-splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/assets/top-bg-splash.png
--------------------------------------------------------------------------------
/chatgpt.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 11.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 54;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1300;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | alwaysOutOfDate = 1;
175 | buildActionMask = 2147483647;
176 | files = (
177 | );
178 | inputPaths = (
179 | );
180 | name = "Thin Binary";
181 | outputPaths = (
182 | );
183 | runOnlyForDeploymentPostprocessing = 0;
184 | shellPath = /bin/sh;
185 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
186 | };
187 | 9740EEB61CF901F6004384FC /* Run Script */ = {
188 | isa = PBXShellScriptBuildPhase;
189 | alwaysOutOfDate = 1;
190 | buildActionMask = 2147483647;
191 | files = (
192 | );
193 | inputPaths = (
194 | );
195 | name = "Run Script";
196 | outputPaths = (
197 | );
198 | runOnlyForDeploymentPostprocessing = 0;
199 | shellPath = /bin/sh;
200 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
201 | };
202 | /* End PBXShellScriptBuildPhase section */
203 |
204 | /* Begin PBXSourcesBuildPhase section */
205 | 97C146EA1CF9000F007C117D /* Sources */ = {
206 | isa = PBXSourcesBuildPhase;
207 | buildActionMask = 2147483647;
208 | files = (
209 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
210 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
211 | );
212 | runOnlyForDeploymentPostprocessing = 0;
213 | };
214 | /* End PBXSourcesBuildPhase section */
215 |
216 | /* Begin PBXVariantGroup section */
217 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
218 | isa = PBXVariantGroup;
219 | children = (
220 | 97C146FB1CF9000F007C117D /* Base */,
221 | );
222 | name = Main.storyboard;
223 | sourceTree = "";
224 | };
225 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
226 | isa = PBXVariantGroup;
227 | children = (
228 | 97C147001CF9000F007C117D /* Base */,
229 | );
230 | name = LaunchScreen.storyboard;
231 | sourceTree = "";
232 | };
233 | /* End PBXVariantGroup section */
234 |
235 | /* Begin XCBuildConfiguration section */
236 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
237 | isa = XCBuildConfiguration;
238 | buildSettings = {
239 | ALWAYS_SEARCH_USER_PATHS = NO;
240 | CLANG_ANALYZER_NONNULL = YES;
241 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
242 | CLANG_CXX_LIBRARY = "libc++";
243 | CLANG_ENABLE_MODULES = YES;
244 | CLANG_ENABLE_OBJC_ARC = YES;
245 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
246 | CLANG_WARN_BOOL_CONVERSION = YES;
247 | CLANG_WARN_COMMA = YES;
248 | CLANG_WARN_CONSTANT_CONVERSION = YES;
249 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
250 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
251 | CLANG_WARN_EMPTY_BODY = YES;
252 | CLANG_WARN_ENUM_CONVERSION = YES;
253 | CLANG_WARN_INFINITE_RECURSION = YES;
254 | CLANG_WARN_INT_CONVERSION = YES;
255 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
257 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
258 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
259 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
260 | CLANG_WARN_STRICT_PROTOTYPES = YES;
261 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
262 | CLANG_WARN_UNREACHABLE_CODE = YES;
263 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
264 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
265 | COPY_PHASE_STRIP = NO;
266 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
267 | ENABLE_NS_ASSERTIONS = NO;
268 | ENABLE_STRICT_OBJC_MSGSEND = YES;
269 | GCC_C_LANGUAGE_STANDARD = gnu99;
270 | GCC_NO_COMMON_BLOCKS = YES;
271 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
272 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
273 | GCC_WARN_UNDECLARED_SELECTOR = YES;
274 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
275 | GCC_WARN_UNUSED_FUNCTION = YES;
276 | GCC_WARN_UNUSED_VARIABLE = YES;
277 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
278 | MTL_ENABLE_DEBUG_INFO = NO;
279 | SDKROOT = iphoneos;
280 | SUPPORTED_PLATFORMS = iphoneos;
281 | TARGETED_DEVICE_FAMILY = "1,2";
282 | VALIDATE_PRODUCT = YES;
283 | };
284 | name = Profile;
285 | };
286 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
287 | isa = XCBuildConfiguration;
288 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
289 | buildSettings = {
290 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
291 | CLANG_ENABLE_MODULES = YES;
292 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
293 | ENABLE_BITCODE = NO;
294 | INFOPLIST_FILE = Runner/Info.plist;
295 | LD_RUNPATH_SEARCH_PATHS = (
296 | "$(inherited)",
297 | "@executable_path/Frameworks",
298 | );
299 | PRODUCT_BUNDLE_IDENTIFIER = com.jagoteori.chatgpt;
300 | PRODUCT_NAME = "$(TARGET_NAME)";
301 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
302 | SWIFT_VERSION = 5.0;
303 | VERSIONING_SYSTEM = "apple-generic";
304 | };
305 | name = Profile;
306 | };
307 | 97C147031CF9000F007C117D /* Debug */ = {
308 | isa = XCBuildConfiguration;
309 | buildSettings = {
310 | ALWAYS_SEARCH_USER_PATHS = NO;
311 | CLANG_ANALYZER_NONNULL = YES;
312 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
313 | CLANG_CXX_LIBRARY = "libc++";
314 | CLANG_ENABLE_MODULES = YES;
315 | CLANG_ENABLE_OBJC_ARC = YES;
316 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
317 | CLANG_WARN_BOOL_CONVERSION = YES;
318 | CLANG_WARN_COMMA = YES;
319 | CLANG_WARN_CONSTANT_CONVERSION = YES;
320 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
321 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
322 | CLANG_WARN_EMPTY_BODY = YES;
323 | CLANG_WARN_ENUM_CONVERSION = YES;
324 | CLANG_WARN_INFINITE_RECURSION = YES;
325 | CLANG_WARN_INT_CONVERSION = YES;
326 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
327 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
328 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
329 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
330 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
331 | CLANG_WARN_STRICT_PROTOTYPES = YES;
332 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
333 | CLANG_WARN_UNREACHABLE_CODE = YES;
334 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
335 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
336 | COPY_PHASE_STRIP = NO;
337 | DEBUG_INFORMATION_FORMAT = dwarf;
338 | ENABLE_STRICT_OBJC_MSGSEND = YES;
339 | ENABLE_TESTABILITY = YES;
340 | GCC_C_LANGUAGE_STANDARD = gnu99;
341 | GCC_DYNAMIC_NO_PIC = NO;
342 | GCC_NO_COMMON_BLOCKS = YES;
343 | GCC_OPTIMIZATION_LEVEL = 0;
344 | GCC_PREPROCESSOR_DEFINITIONS = (
345 | "DEBUG=1",
346 | "$(inherited)",
347 | );
348 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
349 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
350 | GCC_WARN_UNDECLARED_SELECTOR = YES;
351 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
352 | GCC_WARN_UNUSED_FUNCTION = YES;
353 | GCC_WARN_UNUSED_VARIABLE = YES;
354 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
355 | MTL_ENABLE_DEBUG_INFO = YES;
356 | ONLY_ACTIVE_ARCH = YES;
357 | SDKROOT = iphoneos;
358 | TARGETED_DEVICE_FAMILY = "1,2";
359 | };
360 | name = Debug;
361 | };
362 | 97C147041CF9000F007C117D /* Release */ = {
363 | isa = XCBuildConfiguration;
364 | buildSettings = {
365 | ALWAYS_SEARCH_USER_PATHS = NO;
366 | CLANG_ANALYZER_NONNULL = YES;
367 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
368 | CLANG_CXX_LIBRARY = "libc++";
369 | CLANG_ENABLE_MODULES = YES;
370 | CLANG_ENABLE_OBJC_ARC = YES;
371 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
372 | CLANG_WARN_BOOL_CONVERSION = YES;
373 | CLANG_WARN_COMMA = YES;
374 | CLANG_WARN_CONSTANT_CONVERSION = YES;
375 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
376 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
377 | CLANG_WARN_EMPTY_BODY = YES;
378 | CLANG_WARN_ENUM_CONVERSION = YES;
379 | CLANG_WARN_INFINITE_RECURSION = YES;
380 | CLANG_WARN_INT_CONVERSION = YES;
381 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
382 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
383 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
384 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
385 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
386 | CLANG_WARN_STRICT_PROTOTYPES = YES;
387 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
388 | CLANG_WARN_UNREACHABLE_CODE = YES;
389 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
390 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
391 | COPY_PHASE_STRIP = NO;
392 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
393 | ENABLE_NS_ASSERTIONS = NO;
394 | ENABLE_STRICT_OBJC_MSGSEND = YES;
395 | GCC_C_LANGUAGE_STANDARD = gnu99;
396 | GCC_NO_COMMON_BLOCKS = YES;
397 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
398 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
399 | GCC_WARN_UNDECLARED_SELECTOR = YES;
400 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
401 | GCC_WARN_UNUSED_FUNCTION = YES;
402 | GCC_WARN_UNUSED_VARIABLE = YES;
403 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
404 | MTL_ENABLE_DEBUG_INFO = NO;
405 | SDKROOT = iphoneos;
406 | SUPPORTED_PLATFORMS = iphoneos;
407 | SWIFT_COMPILATION_MODE = wholemodule;
408 | SWIFT_OPTIMIZATION_LEVEL = "-O";
409 | TARGETED_DEVICE_FAMILY = "1,2";
410 | VALIDATE_PRODUCT = YES;
411 | };
412 | name = Release;
413 | };
414 | 97C147061CF9000F007C117D /* Debug */ = {
415 | isa = XCBuildConfiguration;
416 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
417 | buildSettings = {
418 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
419 | CLANG_ENABLE_MODULES = YES;
420 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
421 | ENABLE_BITCODE = NO;
422 | INFOPLIST_FILE = Runner/Info.plist;
423 | LD_RUNPATH_SEARCH_PATHS = (
424 | "$(inherited)",
425 | "@executable_path/Frameworks",
426 | );
427 | PRODUCT_BUNDLE_IDENTIFIER = com.jagoteori.chatgpt;
428 | PRODUCT_NAME = "$(TARGET_NAME)";
429 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
430 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
431 | SWIFT_VERSION = 5.0;
432 | VERSIONING_SYSTEM = "apple-generic";
433 | };
434 | name = Debug;
435 | };
436 | 97C147071CF9000F007C117D /* Release */ = {
437 | isa = XCBuildConfiguration;
438 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
439 | buildSettings = {
440 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
441 | CLANG_ENABLE_MODULES = YES;
442 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
443 | ENABLE_BITCODE = NO;
444 | INFOPLIST_FILE = Runner/Info.plist;
445 | LD_RUNPATH_SEARCH_PATHS = (
446 | "$(inherited)",
447 | "@executable_path/Frameworks",
448 | );
449 | PRODUCT_BUNDLE_IDENTIFIER = com.jagoteori.chatgpt;
450 | PRODUCT_NAME = "$(TARGET_NAME)";
451 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
452 | SWIFT_VERSION = 5.0;
453 | VERSIONING_SYSTEM = "apple-generic";
454 | };
455 | name = Release;
456 | };
457 | /* End XCBuildConfiguration section */
458 |
459 | /* Begin XCConfigurationList section */
460 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
461 | isa = XCConfigurationList;
462 | buildConfigurations = (
463 | 97C147031CF9000F007C117D /* Debug */,
464 | 97C147041CF9000F007C117D /* Release */,
465 | 249021D3217E4FDB00AE95B9 /* Profile */,
466 | );
467 | defaultConfigurationIsVisible = 0;
468 | defaultConfigurationName = Release;
469 | };
470 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
471 | isa = XCConfigurationList;
472 | buildConfigurations = (
473 | 97C147061CF9000F007C117D /* Debug */,
474 | 97C147071CF9000F007C117D /* Release */,
475 | 249021D4217E4FDB00AE95B9 /* Profile */,
476 | );
477 | defaultConfigurationIsVisible = 0;
478 | defaultConfigurationName = Release;
479 | };
480 | /* End XCConfigurationList section */
481 | };
482 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
483 | }
484 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
41 |
42 |
52 |
54 |
60 |
61 |
62 |
63 |
69 |
71 |
77 |
78 |
79 |
80 |
82 |
83 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rrdhoi/chatgpt/e649ec6887e8252cadc7243a0a6ade8145543136/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | 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.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Chatgpt
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | chatgpt
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | UIViewControllerBasedStatusBarAppearance
45 |
46 | CADisableMinimumFrameDurationOnPhone
47 |
48 | UIApplicationSupportsIndirectInputEvents
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:chatgpt/view/splash_screen.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | void main() {
5 | runApp(const MyApp());
6 | }
7 |
8 | class MyApp extends StatelessWidget {
9 | const MyApp({super.key});
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return const MaterialApp(
14 | debugShowCheckedModeBanner: false,
15 | home: SplashScreen(),
16 | );
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/lib/model/question_answer.dart:
--------------------------------------------------------------------------------
1 | import 'package:freezed_annotation/freezed_annotation.dart';
2 |
3 | part 'question_answer.freezed.dart';
4 |
5 | @freezed
6 | class QuestionAnswer with _$QuestionAnswer {
7 | const factory QuestionAnswer({
8 | required String question,
9 | required StringBuffer answer,
10 | }) = _QuestionAnswer;
11 | }
12 |
--------------------------------------------------------------------------------
/lib/model/question_answer.freezed.dart:
--------------------------------------------------------------------------------
1 | // coverage:ignore-file
2 | // GENERATED CODE - DO NOT MODIFY BY HAND
3 | // ignore_for_file: type=lint
4 | // ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
5 |
6 | part of 'question_answer.dart';
7 |
8 | // **************************************************************************
9 | // FreezedGenerator
10 | // **************************************************************************
11 |
12 | T _$identity(T value) => value;
13 |
14 | final _privateConstructorUsedError = UnsupportedError(
15 | 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
16 |
17 | /// @nodoc
18 | mixin _$QuestionAnswer {
19 | String get question => throw _privateConstructorUsedError;
20 | StringBuffer get answer => throw _privateConstructorUsedError;
21 |
22 | @JsonKey(ignore: true)
23 | $QuestionAnswerCopyWith get copyWith =>
24 | throw _privateConstructorUsedError;
25 | }
26 |
27 | /// @nodoc
28 | abstract class $QuestionAnswerCopyWith<$Res> {
29 | factory $QuestionAnswerCopyWith(
30 | QuestionAnswer value, $Res Function(QuestionAnswer) then) =
31 | _$QuestionAnswerCopyWithImpl<$Res, QuestionAnswer>;
32 | @useResult
33 | $Res call({String question, StringBuffer answer});
34 | }
35 |
36 | /// @nodoc
37 | class _$QuestionAnswerCopyWithImpl<$Res, $Val extends QuestionAnswer>
38 | implements $QuestionAnswerCopyWith<$Res> {
39 | _$QuestionAnswerCopyWithImpl(this._value, this._then);
40 |
41 | // ignore: unused_field
42 | final $Val _value;
43 | // ignore: unused_field
44 | final $Res Function($Val) _then;
45 |
46 | @pragma('vm:prefer-inline')
47 | @override
48 | $Res call({
49 | Object? question = null,
50 | Object? answer = null,
51 | }) {
52 | return _then(_value.copyWith(
53 | question: null == question
54 | ? _value.question
55 | : question // ignore: cast_nullable_to_non_nullable
56 | as String,
57 | answer: null == answer
58 | ? _value.answer
59 | : answer // ignore: cast_nullable_to_non_nullable
60 | as StringBuffer,
61 | ) as $Val);
62 | }
63 | }
64 |
65 | /// @nodoc
66 | abstract class _$$_QuestionAnswerCopyWith<$Res>
67 | implements $QuestionAnswerCopyWith<$Res> {
68 | factory _$$_QuestionAnswerCopyWith(
69 | _$_QuestionAnswer value, $Res Function(_$_QuestionAnswer) then) =
70 | __$$_QuestionAnswerCopyWithImpl<$Res>;
71 | @override
72 | @useResult
73 | $Res call({String question, StringBuffer answer});
74 | }
75 |
76 | /// @nodoc
77 | class __$$_QuestionAnswerCopyWithImpl<$Res>
78 | extends _$QuestionAnswerCopyWithImpl<$Res, _$_QuestionAnswer>
79 | implements _$$_QuestionAnswerCopyWith<$Res> {
80 | __$$_QuestionAnswerCopyWithImpl(
81 | _$_QuestionAnswer _value, $Res Function(_$_QuestionAnswer) _then)
82 | : super(_value, _then);
83 |
84 | @pragma('vm:prefer-inline')
85 | @override
86 | $Res call({
87 | Object? question = null,
88 | Object? answer = null,
89 | }) {
90 | return _then(_$_QuestionAnswer(
91 | question: null == question
92 | ? _value.question
93 | : question // ignore: cast_nullable_to_non_nullable
94 | as String,
95 | answer: null == answer
96 | ? _value.answer
97 | : answer // ignore: cast_nullable_to_non_nullable
98 | as StringBuffer,
99 | ));
100 | }
101 | }
102 |
103 | /// @nodoc
104 |
105 | class _$_QuestionAnswer implements _QuestionAnswer {
106 | const _$_QuestionAnswer({required this.question, required this.answer});
107 |
108 | @override
109 | final String question;
110 | @override
111 | final StringBuffer answer;
112 |
113 | @override
114 | String toString() {
115 | return 'QuestionAnswer(question: $question, answer: ${answer.toString()})';
116 | }
117 |
118 | @override
119 | bool operator ==(dynamic other) {
120 | return identical(this, other) ||
121 | (other.runtimeType == runtimeType &&
122 | other is _$_QuestionAnswer &&
123 | (identical(other.question, question) ||
124 | other.question == question) &&
125 | (identical(other.answer, answer) || other.answer == answer));
126 | }
127 |
128 | @override
129 | int get hashCode => Object.hash(runtimeType, question, answer);
130 |
131 | @JsonKey(ignore: true)
132 | @override
133 | @pragma('vm:prefer-inline')
134 | _$$_QuestionAnswerCopyWith<_$_QuestionAnswer> get copyWith =>
135 | __$$_QuestionAnswerCopyWithImpl<_$_QuestionAnswer>(this, _$identity);
136 | }
137 |
138 | abstract class _QuestionAnswer implements QuestionAnswer {
139 | const factory _QuestionAnswer(
140 | {required final String question,
141 | required final StringBuffer answer}) = _$_QuestionAnswer;
142 |
143 | @override
144 | String get question;
145 | @override
146 | StringBuffer get answer;
147 | @override
148 | @JsonKey(ignore: true)
149 | _$$_QuestionAnswerCopyWith<_$_QuestionAnswer> get copyWith =>
150 | throw _privateConstructorUsedError;
151 | }
152 |
--------------------------------------------------------------------------------
/lib/theme.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:google_fonts/google_fonts.dart';
3 |
4 | final kWhiteText = GoogleFonts.nunito(
5 | color: kWhiteColor,
6 | );
7 |
8 | const kWhiteColor = Color(0xFFd9d9e3);
9 | const kPrimaryColor = Color(0xFF10A37F);
10 |
11 | const kBg500Color = Color(0xFF202123);
12 | const kBg300Color = Color(0xFF222528);
13 | const kBg100Color = Color(0xff272d31);
14 |
15 | const kMedium = FontWeight.w500;
16 | const kRegular = FontWeight.w400;
17 | const kSemiBold = FontWeight.w600;
18 |
--------------------------------------------------------------------------------
/lib/view/chat_screen.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:chat_gpt_flutter/chat_gpt_flutter.dart';
4 | import 'package:chatgpt/api_key.dart';
5 | import 'package:chatgpt/model/question_answer.dart';
6 | import 'package:chatgpt/theme.dart';
7 | import 'package:chatgpt/view/components/chatgpt_answer_widget.dart';
8 | import 'package:chatgpt/view/components/loading_widget.dart';
9 | import 'package:chatgpt/view/components/text_input_widget.dart';
10 | import 'package:chatgpt/view/components/user_question_widget.dart';
11 | import 'package:flutter/material.dart';
12 |
13 | class ChatScreen extends StatefulWidget {
14 | const ChatScreen({Key? key}) : super(key: key);
15 |
16 | @override
17 | State createState() => _ChatScreenState();
18 | }
19 |
20 | class _ChatScreenState extends State {
21 | String? answer;
22 | final loadingNotifier = ValueNotifier(false);
23 | final List questionAnswers = [];
24 |
25 | late ScrollController scrollController;
26 | late ChatGpt chatGpt;
27 | late TextEditingController inputQuestionController;
28 | StreamSubscription? streamSubscription;
29 |
30 | @override
31 | void initState() {
32 | inputQuestionController = TextEditingController();
33 | scrollController = ScrollController();
34 | chatGpt = ChatGpt(apiKey: openAIApiKey);
35 | super.initState();
36 | }
37 |
38 | @override
39 | void dispose() {
40 | inputQuestionController.dispose();
41 | loadingNotifier.dispose();
42 | scrollController.dispose();
43 | streamSubscription?.cancel();
44 | super.dispose();
45 | }
46 |
47 | @override
48 | Widget build(BuildContext context) {
49 | return Scaffold(
50 | backgroundColor: kBg500Color,
51 | appBar: AppBar(
52 | elevation: 1,
53 | shadowColor: Colors.white12,
54 | centerTitle: true,
55 | title: Text(
56 | "ChatGPT",
57 | style: kWhiteText.copyWith(fontSize: 20, fontWeight: kSemiBold),
58 | ),
59 | backgroundColor: kBg300Color,
60 | ),
61 | body: SafeArea(
62 | child: Column(
63 | children: [
64 | buildChatList(),
65 | TextInputWidget(
66 | textController: inputQuestionController,
67 | onSubmitted: () => _sendMessage(),
68 | )
69 | ],
70 | ),
71 | ),
72 | );
73 | }
74 |
75 | Expanded buildChatList() {
76 | return Expanded(
77 | child: ListView.separated(
78 | controller: scrollController,
79 | separatorBuilder: (context, index) => const SizedBox(
80 | height: 12,
81 | ),
82 | physics: const BouncingScrollPhysics(),
83 | padding:
84 | const EdgeInsets.only(bottom: 20, left: 16, right: 16, top: 16),
85 | itemCount: questionAnswers.length,
86 | itemBuilder: (BuildContext context, int index) {
87 | final question = questionAnswers[index].question;
88 | final answer = questionAnswers[index].answer;
89 |
90 | return Column(
91 | crossAxisAlignment: CrossAxisAlignment.stretch,
92 | children: [
93 | UserQuestionWidget(question: question),
94 | const SizedBox(height: 16),
95 | ValueListenableBuilder(
96 | valueListenable: loadingNotifier,
97 | builder: (_, bool isLoading, __) {
98 | if (answer.isEmpty && isLoading) {
99 | _scrollToBottom();
100 | return const LoadingWidget();
101 | } else {
102 | return ChatGptAnswerWidget(
103 | answer: answer.toString().trim(),
104 | );
105 | }
106 | },
107 | )
108 | ],
109 | );
110 | },
111 | ),
112 | );
113 | }
114 |
115 | void _scrollToBottom() {
116 | WidgetsBinding.instance.addPostFrameCallback((_) {
117 | scrollController.animateTo(
118 | scrollController.position.maxScrollExtent,
119 | duration: const Duration(milliseconds: 250),
120 | curve: Curves.easeInOut,
121 | );
122 | });
123 | }
124 |
125 | void _sendMessage() async {
126 | final question = inputQuestionController.text;
127 | inputQuestionController.clear();
128 | loadingNotifier.value = true;
129 |
130 | setState(() => questionAnswers
131 | .add(QuestionAnswer(question: question, answer: StringBuffer())));
132 |
133 | final testRequest = CompletionRequest(
134 | prompt: [question],
135 | stream: true,
136 | maxTokens: 500,
137 | temperature: 1,
138 | model: ChatGptModel.textDavinci003,
139 | );
140 | await _streamResponse(testRequest)
141 | .whenComplete(() => loadingNotifier.value = true);
142 | }
143 |
144 | Future _streamResponse(CompletionRequest request) async {
145 | streamSubscription?.cancel();
146 | try {
147 | final stream = await chatGpt.createCompletionStream(request);
148 | streamSubscription = stream?.listen((event) {
149 | if (event.streamMessageEnd) {
150 | streamSubscription?.cancel();
151 | } else {
152 | setState(() {
153 | questionAnswers.last.answer.write(event.choices?.first.text);
154 | _scrollToBottom();
155 | });
156 | }
157 | });
158 | } catch (e) {
159 | debugPrint("Error: $e");
160 | setState(() => questionAnswers.last.answer.write("error"));
161 | }
162 | }
163 | }
164 |
--------------------------------------------------------------------------------
/lib/view/components/chatgpt_answer_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:chatgpt/theme.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class ChatGptAnswerWidget extends StatelessWidget {
5 | final String answer;
6 |
7 | const ChatGptAnswerWidget({required this.answer, Key? key}) : super(key: key);
8 |
9 | @override
10 | Widget build(BuildContext context) {
11 | return Row(
12 | crossAxisAlignment: CrossAxisAlignment.start,
13 | children: [
14 | ClipOval(
15 | child: SizedBox(
16 | height: 32,
17 | width: 32,
18 | child: Image.asset("assets/chatgpt_logo.png")),
19 | ),
20 | const SizedBox(width: 12),
21 | Flexible(
22 | child: Container(
23 | padding: const EdgeInsets.all(8.0),
24 | margin: const EdgeInsets.only(right: 12),
25 | decoration: BoxDecoration(
26 | color: kBg100Color,
27 | borderRadius: BorderRadius.circular(8),
28 | ),
29 | child: Text(
30 | answer.toString().trim(),
31 | style: kWhiteText.copyWith(fontSize: 16, fontWeight: kRegular),
32 | ),
33 | ),
34 | ),
35 | ],
36 | );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/lib/view/components/loading_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:chatgpt/theme.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_spinkit/flutter_spinkit.dart';
4 |
5 | class LoadingWidget extends StatelessWidget {
6 | const LoadingWidget({Key? key}) : super(key: key);
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return const Center(
11 | child: Padding(
12 | padding: EdgeInsets.symmetric(horizontal: 12.0),
13 | child: SpinKitThreeBounce(
14 | color: kWhiteColor,
15 | size: 18,
16 | ),
17 | ),
18 | );
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/lib/view/components/text_input_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:chatgpt/theme.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:iconsax/iconsax.dart';
4 |
5 | class TextInputWidget extends StatelessWidget {
6 | final TextEditingController textController;
7 | final VoidCallback onSubmitted;
8 |
9 | const TextInputWidget(
10 | {required this.textController, required this.onSubmitted, Key? key})
11 | : super(key: key);
12 |
13 | @override
14 | Widget build(BuildContext context) {
15 | return Row(
16 | crossAxisAlignment: CrossAxisAlignment.end,
17 | children: [
18 | Flexible(
19 | child: Container(
20 | padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 4),
21 | margin: const EdgeInsets.only(bottom: 12, left: 12),
22 | decoration: const BoxDecoration(
23 | color: kBg100Color,
24 | borderRadius: BorderRadius.vertical(
25 | top: Radius.circular(12), bottom: Radius.circular(12)),
26 | ),
27 | child: TextFormField(
28 | controller: textController,
29 | minLines: 1,
30 | maxLines: 6,
31 | keyboardType: TextInputType.multiline,
32 | style: kWhiteText.copyWith(fontSize: 16),
33 | decoration: InputDecoration(
34 | filled: true,
35 | fillColor: kBg100Color,
36 | hintText: 'Type in...',
37 | hintStyle: kWhiteText.copyWith(fontSize: 16),
38 | border: InputBorder.none,
39 | contentPadding: const EdgeInsets.only(left: 12.0),
40 | ),
41 | onFieldSubmitted: (_) => onSubmitted,
42 | ),
43 | ),
44 | ),
45 | const SizedBox(width: 12),
46 | Container(
47 | width: 48,
48 | height: 48,
49 | margin: const EdgeInsets.only(bottom: 12, right: 12),
50 | decoration:
51 | const BoxDecoration(color: kPrimaryColor, shape: BoxShape.circle),
52 | child: GestureDetector(
53 | onTap: onSubmitted,
54 | child: const Icon(
55 | Iconsax.send_24,
56 | color: Colors.white,
57 | ),
58 | ),
59 | )
60 | ],
61 | );
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/lib/view/components/user_question_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:chatgpt/theme.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class UserQuestionWidget extends StatelessWidget {
5 | final String question;
6 |
7 | const UserQuestionWidget({required this.question, Key? key})
8 | : super(key: key);
9 |
10 | @override
11 | Widget build(BuildContext context) {
12 | return Row(
13 | mainAxisAlignment: MainAxisAlignment.end,
14 | crossAxisAlignment: CrossAxisAlignment.start,
15 | children: [
16 | Flexible(
17 | child: Container(
18 | padding: const EdgeInsets.all(8.0),
19 | margin: const EdgeInsets.only(left: 12),
20 | decoration: BoxDecoration(
21 | color: kBg100Color,
22 | borderRadius: BorderRadius.circular(8),
23 | ),
24 | child: Text(
25 | question,
26 | style: kWhiteText.copyWith(fontSize: 16, fontWeight: kRegular),
27 | ),
28 | ),
29 | ),
30 | const SizedBox(width: 12),
31 | ClipOval(
32 | child: Material(
33 | color: Colors.deepOrangeAccent,
34 | child: SizedBox(
35 | height: 32,
36 | width: 32,
37 | child: Center(
38 | child: Text(
39 | "U",
40 | style: kWhiteText.copyWith(
41 | fontWeight: kSemiBold,
42 | fontSize: 16,
43 | ),
44 | ),
45 | ),
46 | ),
47 | ),
48 | )
49 | ],
50 | );
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/lib/view/splash_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:chatgpt/theme.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | import 'chat_screen.dart';
5 |
6 | class SplashScreen extends StatefulWidget {
7 | const SplashScreen({super.key});
8 |
9 | @override
10 | State createState() => _SplashScreenState();
11 | }
12 |
13 | class _SplashScreenState extends State {
14 | @override
15 | void initState() {
16 | Future.delayed(const Duration(milliseconds: 2000)).then((value) {
17 | Navigator.of(context).pushReplacement(PageRouteBuilder(
18 | pageBuilder: (context, animation, secondaryAnimation) =>
19 | const ChatScreen(),
20 | transitionsBuilder: (context, animation, secondaryAnimation, child) {
21 | const begin = Offset(1.0, 0.0);
22 | const end = Offset.zero;
23 | const curve = Curves.bounceOut;
24 |
25 | var tween =
26 | Tween(begin: begin, end: end).chain(CurveTween(curve: curve));
27 |
28 | return SlideTransition(
29 | position: animation.drive(tween),
30 | child: child,
31 | );
32 | },
33 | ));
34 | });
35 | super.initState();
36 | }
37 |
38 | @override
39 | Widget build(BuildContext context) {
40 | final width = MediaQuery.of(context).size.width;
41 | return Scaffold(
42 | backgroundColor: kBg500Color,
43 | body: SizedBox(
44 | width: double.infinity,
45 | height: double.infinity,
46 | child: Stack(
47 | alignment: Alignment.center,
48 | children: [
49 | Align(
50 | alignment: Alignment.topRight,
51 | child: Image.asset(
52 | width: width * 0.8,
53 | "assets/top-bg-splash.png",
54 | ),
55 | ),
56 | Align(
57 | alignment: Alignment.bottomLeft,
58 | child: Image.asset(
59 | width: width * 0.7,
60 | "assets/bot_bg_splash.png",
61 | ),
62 | ),
63 | Center(
64 | child: Image.asset(
65 | "assets/logo.png",
66 | height: 65,
67 | ),
68 | ),
69 | ],
70 | ),
71 | ),
72 | );
73 | }
74 | }
75 |
--------------------------------------------------------------------------------
/lib/viewmodel/get_question_answer_bloc.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_bloc/flutter_bloc.dart';
2 |
3 | part 'get_question_answer_event.dart';
4 | part 'get_question_answer_state.dart';
5 |
6 | class GetQuestionAnswerBloc
7 | extends Bloc {
8 | GetQuestionAnswerBloc() : super(GetQuestionAnswerInitial()) {
9 | on((event, emit) {
10 | // TODO: implement event handler
11 | });
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/lib/viewmodel/get_question_answer_event.dart:
--------------------------------------------------------------------------------
1 | part of 'get_question_answer_bloc.dart';
2 |
3 | abstract class GetQuestionAnswerEvent {}
4 |
--------------------------------------------------------------------------------
/lib/viewmodel/get_question_answer_state.dart:
--------------------------------------------------------------------------------
1 | part of 'get_question_answer_bloc.dart';
2 |
3 | abstract class GetQuestionAnswerState {}
4 |
5 | class GetQuestionAnswerInitial extends GetQuestionAnswerState {}
6 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | _fe_analyzer_shared:
5 | dependency: transitive
6 | description:
7 | name: _fe_analyzer_shared
8 | sha256: "569ddca58d535e601dd1584afa117710abc999d036c0cd2c51777fb257df78e8"
9 | url: "https://pub.dev"
10 | source: hosted
11 | version: "53.0.0"
12 | analyzer:
13 | dependency: transitive
14 | description:
15 | name: analyzer
16 | sha256: "10927c4b7c7c88b1adbca278c3d5531db92e2f4b4abf04e2919a800af965f3f5"
17 | url: "https://pub.dev"
18 | source: hosted
19 | version: "5.5.0"
20 | args:
21 | dependency: transitive
22 | description:
23 | name: args
24 | sha256: "4cab82a83ffef80b262ddedf47a0a8e56ee6fbf7fe21e6e768b02792034dd440"
25 | url: "https://pub.dev"
26 | source: hosted
27 | version: "2.4.0"
28 | async:
29 | dependency: transitive
30 | description:
31 | name: async
32 | sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0
33 | url: "https://pub.dev"
34 | source: hosted
35 | version: "2.10.0"
36 | bloc:
37 | dependency: transitive
38 | description:
39 | name: bloc
40 | sha256: "658a5ae59edcf1e58aac98b000a71c762ad8f46f1394c34a52050cafb3e11a80"
41 | url: "https://pub.dev"
42 | source: hosted
43 | version: "8.1.1"
44 | boolean_selector:
45 | dependency: transitive
46 | description:
47 | name: boolean_selector
48 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
49 | url: "https://pub.dev"
50 | source: hosted
51 | version: "2.1.1"
52 | build:
53 | dependency: transitive
54 | description:
55 | name: build
56 | sha256: "3fbda25365741f8251b39f3917fb3c8e286a96fd068a5a242e11c2012d495777"
57 | url: "https://pub.dev"
58 | source: hosted
59 | version: "2.3.1"
60 | build_config:
61 | dependency: transitive
62 | description:
63 | name: build_config
64 | sha256: bf80fcfb46a29945b423bd9aad884590fb1dc69b330a4d4700cac476af1708d1
65 | url: "https://pub.dev"
66 | source: hosted
67 | version: "1.1.1"
68 | build_daemon:
69 | dependency: transitive
70 | description:
71 | name: build_daemon
72 | sha256: "6bc5544ea6ce4428266e7ea680e945c68806c4aae2da0eb5e9ccf38df8d6acbf"
73 | url: "https://pub.dev"
74 | source: hosted
75 | version: "3.1.0"
76 | build_resolvers:
77 | dependency: transitive
78 | description:
79 | name: build_resolvers
80 | sha256: db49b8609ef8c81cca2b310618c3017c00f03a92af44c04d310b907b2d692d95
81 | url: "https://pub.dev"
82 | source: hosted
83 | version: "2.2.0"
84 | build_runner:
85 | dependency: "direct main"
86 | description:
87 | name: build_runner
88 | sha256: b0a8a7b8a76c493e85f1b84bffa0588859a06197863dba8c9036b15581fd9727
89 | url: "https://pub.dev"
90 | source: hosted
91 | version: "2.3.3"
92 | build_runner_core:
93 | dependency: transitive
94 | description:
95 | name: build_runner_core
96 | sha256: "14febe0f5bac5ae474117a36099b4de6f1dbc52df6c5e55534b3da9591bf4292"
97 | url: "https://pub.dev"
98 | source: hosted
99 | version: "7.2.7"
100 | built_collection:
101 | dependency: transitive
102 | description:
103 | name: built_collection
104 | sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100"
105 | url: "https://pub.dev"
106 | source: hosted
107 | version: "5.1.1"
108 | built_value:
109 | dependency: transitive
110 | description:
111 | name: built_value
112 | sha256: "169565c8ad06adb760c3645bf71f00bff161b00002cace266cad42c5d22a7725"
113 | url: "https://pub.dev"
114 | source: hosted
115 | version: "8.4.3"
116 | characters:
117 | dependency: transitive
118 | description:
119 | name: characters
120 | sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c
121 | url: "https://pub.dev"
122 | source: hosted
123 | version: "1.2.1"
124 | chat_gpt_flutter:
125 | dependency: "direct main"
126 | description:
127 | name: chat_gpt_flutter
128 | sha256: "5677a588a7181d55d619a4c8a157fa5ed45d00ccdaba9e60f086791b7458b09e"
129 | url: "https://pub.dev"
130 | source: hosted
131 | version: "1.0.6"
132 | checked_yaml:
133 | dependency: transitive
134 | description:
135 | name: checked_yaml
136 | sha256: "3d1505d91afa809d177efd4eed5bb0eb65805097a1463abdd2add076effae311"
137 | url: "https://pub.dev"
138 | source: hosted
139 | version: "2.0.2"
140 | clock:
141 | dependency: transitive
142 | description:
143 | name: clock
144 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
145 | url: "https://pub.dev"
146 | source: hosted
147 | version: "1.1.1"
148 | code_builder:
149 | dependency: transitive
150 | description:
151 | name: code_builder
152 | sha256: "0d43dd1288fd145de1ecc9a3948ad4a6d5a82f0a14c4fdd0892260787d975cbe"
153 | url: "https://pub.dev"
154 | source: hosted
155 | version: "4.4.0"
156 | collection:
157 | dependency: transitive
158 | description:
159 | name: collection
160 | sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0
161 | url: "https://pub.dev"
162 | source: hosted
163 | version: "1.17.0"
164 | convert:
165 | dependency: transitive
166 | description:
167 | name: convert
168 | sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592"
169 | url: "https://pub.dev"
170 | source: hosted
171 | version: "3.1.1"
172 | crypto:
173 | dependency: transitive
174 | description:
175 | name: crypto
176 | sha256: aa274aa7774f8964e4f4f38cc994db7b6158dd36e9187aaceaddc994b35c6c67
177 | url: "https://pub.dev"
178 | source: hosted
179 | version: "3.0.2"
180 | cupertino_icons:
181 | dependency: "direct main"
182 | description:
183 | name: cupertino_icons
184 | sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be
185 | url: "https://pub.dev"
186 | source: hosted
187 | version: "1.0.5"
188 | dart_style:
189 | dependency: transitive
190 | description:
191 | name: dart_style
192 | sha256: "7a03456c3490394c8e7665890333e91ae8a49be43542b616e414449ac358acd4"
193 | url: "https://pub.dev"
194 | source: hosted
195 | version: "2.2.4"
196 | dio:
197 | dependency: transitive
198 | description:
199 | name: dio
200 | sha256: "7d328c4d898a61efc3cd93655a0955858e29a0aa647f0f9e02d59b3bb275e2e8"
201 | url: "https://pub.dev"
202 | source: hosted
203 | version: "4.0.6"
204 | fake_async:
205 | dependency: transitive
206 | description:
207 | name: fake_async
208 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
209 | url: "https://pub.dev"
210 | source: hosted
211 | version: "1.3.1"
212 | ffi:
213 | dependency: transitive
214 | description:
215 | name: ffi
216 | sha256: a38574032c5f1dd06c4aee541789906c12ccaab8ba01446e800d9c5b79c4a978
217 | url: "https://pub.dev"
218 | source: hosted
219 | version: "2.0.1"
220 | file:
221 | dependency: transitive
222 | description:
223 | name: file
224 | sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d"
225 | url: "https://pub.dev"
226 | source: hosted
227 | version: "6.1.4"
228 | fixnum:
229 | dependency: transitive
230 | description:
231 | name: fixnum
232 | sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1"
233 | url: "https://pub.dev"
234 | source: hosted
235 | version: "1.1.0"
236 | flutter:
237 | dependency: "direct main"
238 | description: flutter
239 | source: sdk
240 | version: "0.0.0"
241 | flutter_bloc:
242 | dependency: "direct main"
243 | description:
244 | name: flutter_bloc
245 | sha256: "434951eea948dbe87f737b674281465f610b8259c16c097b8163ce138749a775"
246 | url: "https://pub.dev"
247 | source: hosted
248 | version: "8.1.2"
249 | flutter_lints:
250 | dependency: "direct dev"
251 | description:
252 | name: flutter_lints
253 | sha256: aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c
254 | url: "https://pub.dev"
255 | source: hosted
256 | version: "2.0.1"
257 | flutter_spinkit:
258 | dependency: "direct main"
259 | description:
260 | name: flutter_spinkit
261 | sha256: "77a2117c0517ff909221f3160b8eb20052ab5216107581168af574ac1f05dff8"
262 | url: "https://pub.dev"
263 | source: hosted
264 | version: "5.1.0"
265 | flutter_test:
266 | dependency: "direct dev"
267 | description: flutter
268 | source: sdk
269 | version: "0.0.0"
270 | freezed:
271 | dependency: "direct main"
272 | description:
273 | name: freezed
274 | sha256: e819441678f1679b719008ff2ff0ef045d66eed9f9ec81166ca0d9b02a187454
275 | url: "https://pub.dev"
276 | source: hosted
277 | version: "2.3.2"
278 | freezed_annotation:
279 | dependency: "direct main"
280 | description:
281 | name: freezed_annotation
282 | sha256: aeac15850ef1b38ee368d4c53ba9a847e900bb2c53a4db3f6881cbb3cb684338
283 | url: "https://pub.dev"
284 | source: hosted
285 | version: "2.2.0"
286 | frontend_server_client:
287 | dependency: transitive
288 | description:
289 | name: frontend_server_client
290 | sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612"
291 | url: "https://pub.dev"
292 | source: hosted
293 | version: "3.2.0"
294 | glob:
295 | dependency: transitive
296 | description:
297 | name: glob
298 | sha256: "4515b5b6ddb505ebdd242a5f2cc5d22d3d6a80013789debfbda7777f47ea308c"
299 | url: "https://pub.dev"
300 | source: hosted
301 | version: "2.1.1"
302 | google_fonts:
303 | dependency: "direct main"
304 | description:
305 | name: google_fonts
306 | sha256: "927573f2e8a8d65c17931e21918ad0ab0666b1b636537de7c4932bdb487b190f"
307 | url: "https://pub.dev"
308 | source: hosted
309 | version: "4.0.3"
310 | graphs:
311 | dependency: transitive
312 | description:
313 | name: graphs
314 | sha256: f9e130f3259f52d26f0cfc0e964513796dafed572fa52e45d2f8d6ca14db39b2
315 | url: "https://pub.dev"
316 | source: hosted
317 | version: "2.2.0"
318 | http:
319 | dependency: transitive
320 | description:
321 | name: http
322 | sha256: "6aa2946395183537c8b880962d935877325d6a09a2867c3970c05c0fed6ac482"
323 | url: "https://pub.dev"
324 | source: hosted
325 | version: "0.13.5"
326 | http_multi_server:
327 | dependency: transitive
328 | description:
329 | name: http_multi_server
330 | sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b"
331 | url: "https://pub.dev"
332 | source: hosted
333 | version: "3.2.1"
334 | http_parser:
335 | dependency: transitive
336 | description:
337 | name: http_parser
338 | sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b"
339 | url: "https://pub.dev"
340 | source: hosted
341 | version: "4.0.2"
342 | iconsax:
343 | dependency: "direct main"
344 | description:
345 | name: iconsax
346 | sha256: fb0144c61f41f3f8a385fadc27783ea9f5359670be885ed7f35cef32565d5228
347 | url: "https://pub.dev"
348 | source: hosted
349 | version: "0.0.8"
350 | io:
351 | dependency: transitive
352 | description:
353 | name: io
354 | sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e"
355 | url: "https://pub.dev"
356 | source: hosted
357 | version: "1.0.4"
358 | js:
359 | dependency: transitive
360 | description:
361 | name: js
362 | sha256: "5528c2f391ededb7775ec1daa69e65a2d61276f7552de2b5f7b8d34ee9fd4ab7"
363 | url: "https://pub.dev"
364 | source: hosted
365 | version: "0.6.5"
366 | json_annotation:
367 | dependency: transitive
368 | description:
369 | name: json_annotation
370 | sha256: c33da08e136c3df0190bd5bbe51ae1df4a7d96e7954d1d7249fea2968a72d317
371 | url: "https://pub.dev"
372 | source: hosted
373 | version: "4.8.0"
374 | json_serializable:
375 | dependency: transitive
376 | description:
377 | name: json_serializable
378 | sha256: dadc08bd61f72559f938dd08ec20dbfec6c709bba83515085ea943d2078d187a
379 | url: "https://pub.dev"
380 | source: hosted
381 | version: "6.6.1"
382 | lints:
383 | dependency: transitive
384 | description:
385 | name: lints
386 | sha256: "5e4a9cd06d447758280a8ac2405101e0e2094d2a1dbdd3756aec3fe7775ba593"
387 | url: "https://pub.dev"
388 | source: hosted
389 | version: "2.0.1"
390 | logging:
391 | dependency: transitive
392 | description:
393 | name: logging
394 | sha256: "04094f2eb032cbb06c6f6e8d3607edcfcb0455e2bb6cbc010cb01171dcb64e6d"
395 | url: "https://pub.dev"
396 | source: hosted
397 | version: "1.1.1"
398 | matcher:
399 | dependency: transitive
400 | description:
401 | name: matcher
402 | sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72"
403 | url: "https://pub.dev"
404 | source: hosted
405 | version: "0.12.13"
406 | material_color_utilities:
407 | dependency: transitive
408 | description:
409 | name: material_color_utilities
410 | sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
411 | url: "https://pub.dev"
412 | source: hosted
413 | version: "0.2.0"
414 | meta:
415 | dependency: transitive
416 | description:
417 | name: meta
418 | sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42"
419 | url: "https://pub.dev"
420 | source: hosted
421 | version: "1.8.0"
422 | mime:
423 | dependency: transitive
424 | description:
425 | name: mime
426 | sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e
427 | url: "https://pub.dev"
428 | source: hosted
429 | version: "1.0.4"
430 | nested:
431 | dependency: transitive
432 | description:
433 | name: nested
434 | sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20"
435 | url: "https://pub.dev"
436 | source: hosted
437 | version: "1.0.0"
438 | package_config:
439 | dependency: transitive
440 | description:
441 | name: package_config
442 | sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd"
443 | url: "https://pub.dev"
444 | source: hosted
445 | version: "2.1.0"
446 | path:
447 | dependency: transitive
448 | description:
449 | name: path
450 | sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b
451 | url: "https://pub.dev"
452 | source: hosted
453 | version: "1.8.2"
454 | path_provider:
455 | dependency: transitive
456 | description:
457 | name: path_provider
458 | sha256: dcea5feb97d8abf90cab9e9030b497fb7c3cbf26b7a1fe9e3ef7dcb0a1ddec95
459 | url: "https://pub.dev"
460 | source: hosted
461 | version: "2.0.12"
462 | path_provider_android:
463 | dependency: transitive
464 | description:
465 | name: path_provider_android
466 | sha256: a776c088d671b27f6e3aa8881d64b87b3e80201c64e8869b811325de7a76c15e
467 | url: "https://pub.dev"
468 | source: hosted
469 | version: "2.0.22"
470 | path_provider_foundation:
471 | dependency: transitive
472 | description:
473 | name: path_provider_foundation
474 | sha256: "62a68e7e1c6c459f9289859e2fae58290c981ce21d1697faf54910fe1faa4c74"
475 | url: "https://pub.dev"
476 | source: hosted
477 | version: "2.1.1"
478 | path_provider_linux:
479 | dependency: transitive
480 | description:
481 | name: path_provider_linux
482 | sha256: "2e32f1640f07caef0d3cb993680f181c79e54a3827b997d5ee221490d131fbd9"
483 | url: "https://pub.dev"
484 | source: hosted
485 | version: "2.1.8"
486 | path_provider_platform_interface:
487 | dependency: transitive
488 | description:
489 | name: path_provider_platform_interface
490 | sha256: f0abc8ebd7253741f05488b4813d936b4d07c6bae3e86148a09e342ee4b08e76
491 | url: "https://pub.dev"
492 | source: hosted
493 | version: "2.0.5"
494 | path_provider_windows:
495 | dependency: transitive
496 | description:
497 | name: path_provider_windows
498 | sha256: bcabbe399d4042b8ee687e17548d5d3f527255253b4a639f5f8d2094a9c2b45c
499 | url: "https://pub.dev"
500 | source: hosted
501 | version: "2.1.3"
502 | platform:
503 | dependency: transitive
504 | description:
505 | name: platform
506 | sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76"
507 | url: "https://pub.dev"
508 | source: hosted
509 | version: "3.1.0"
510 | plugin_platform_interface:
511 | dependency: transitive
512 | description:
513 | name: plugin_platform_interface
514 | sha256: dbf0f707c78beedc9200146ad3cb0ab4d5da13c246336987be6940f026500d3a
515 | url: "https://pub.dev"
516 | source: hosted
517 | version: "2.1.3"
518 | pool:
519 | dependency: transitive
520 | description:
521 | name: pool
522 | sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a"
523 | url: "https://pub.dev"
524 | source: hosted
525 | version: "1.5.1"
526 | pretty_dio_logger:
527 | dependency: transitive
528 | description:
529 | name: pretty_dio_logger
530 | sha256: "948f7eeb36e7aa0760b51c1a8e3331d4b21e36fabd39efca81f585ed93893544"
531 | url: "https://pub.dev"
532 | source: hosted
533 | version: "1.2.0-beta-1"
534 | process:
535 | dependency: transitive
536 | description:
537 | name: process
538 | sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09"
539 | url: "https://pub.dev"
540 | source: hosted
541 | version: "4.2.4"
542 | provider:
543 | dependency: transitive
544 | description:
545 | name: provider
546 | sha256: cdbe7530b12ecd9eb455bdaa2fcb8d4dad22e80b8afb4798b41479d5ce26847f
547 | url: "https://pub.dev"
548 | source: hosted
549 | version: "6.0.5"
550 | pub_semver:
551 | dependency: transitive
552 | description:
553 | name: pub_semver
554 | sha256: "307de764d305289ff24ad257ad5c5793ce56d04947599ad68b3baa124105fc17"
555 | url: "https://pub.dev"
556 | source: hosted
557 | version: "2.1.3"
558 | pubspec_parse:
559 | dependency: transitive
560 | description:
561 | name: pubspec_parse
562 | sha256: "75f6614d6dde2dc68948dffbaa4fe5dae32cd700eb9fb763fe11dfb45a3c4d0a"
563 | url: "https://pub.dev"
564 | source: hosted
565 | version: "1.2.1"
566 | shelf:
567 | dependency: transitive
568 | description:
569 | name: shelf
570 | sha256: c24a96135a2ccd62c64b69315a14adc5c3419df63b4d7c05832a346fdb73682c
571 | url: "https://pub.dev"
572 | source: hosted
573 | version: "1.4.0"
574 | shelf_web_socket:
575 | dependency: transitive
576 | description:
577 | name: shelf_web_socket
578 | sha256: a988c0e8d8ffbdb8a28aa7ec8e449c260f3deb808781fe1284d22c5bba7156e8
579 | url: "https://pub.dev"
580 | source: hosted
581 | version: "1.0.3"
582 | sky_engine:
583 | dependency: transitive
584 | description: flutter
585 | source: sdk
586 | version: "0.0.99"
587 | source_gen:
588 | dependency: transitive
589 | description:
590 | name: source_gen
591 | sha256: c2bea18c95cfa0276a366270afaa2850b09b4a76db95d546f3d003dcc7011298
592 | url: "https://pub.dev"
593 | source: hosted
594 | version: "1.2.7"
595 | source_helper:
596 | dependency: transitive
597 | description:
598 | name: source_helper
599 | sha256: "3b67aade1d52416149c633ba1bb36df44d97c6b51830c2198e934e3fca87ca1f"
600 | url: "https://pub.dev"
601 | source: hosted
602 | version: "1.3.3"
603 | source_span:
604 | dependency: transitive
605 | description:
606 | name: source_span
607 | sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
608 | url: "https://pub.dev"
609 | source: hosted
610 | version: "1.9.1"
611 | stack_trace:
612 | dependency: transitive
613 | description:
614 | name: stack_trace
615 | sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
616 | url: "https://pub.dev"
617 | source: hosted
618 | version: "1.11.0"
619 | stream_channel:
620 | dependency: transitive
621 | description:
622 | name: stream_channel
623 | sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
624 | url: "https://pub.dev"
625 | source: hosted
626 | version: "2.1.1"
627 | stream_transform:
628 | dependency: transitive
629 | description:
630 | name: stream_transform
631 | sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f"
632 | url: "https://pub.dev"
633 | source: hosted
634 | version: "2.1.0"
635 | string_scanner:
636 | dependency: transitive
637 | description:
638 | name: string_scanner
639 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
640 | url: "https://pub.dev"
641 | source: hosted
642 | version: "1.2.0"
643 | term_glyph:
644 | dependency: transitive
645 | description:
646 | name: term_glyph
647 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
648 | url: "https://pub.dev"
649 | source: hosted
650 | version: "1.2.1"
651 | test_api:
652 | dependency: transitive
653 | description:
654 | name: test_api
655 | sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206
656 | url: "https://pub.dev"
657 | source: hosted
658 | version: "0.4.16"
659 | timing:
660 | dependency: transitive
661 | description:
662 | name: timing
663 | sha256: "70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32"
664 | url: "https://pub.dev"
665 | source: hosted
666 | version: "1.0.1"
667 | typed_data:
668 | dependency: transitive
669 | description:
670 | name: typed_data
671 | sha256: "26f87ade979c47a150c9eaab93ccd2bebe70a27dc0b4b29517f2904f04eb11a5"
672 | url: "https://pub.dev"
673 | source: hosted
674 | version: "1.3.1"
675 | vector_math:
676 | dependency: transitive
677 | description:
678 | name: vector_math
679 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
680 | url: "https://pub.dev"
681 | source: hosted
682 | version: "2.1.4"
683 | watcher:
684 | dependency: transitive
685 | description:
686 | name: watcher
687 | sha256: "6a7f46926b01ce81bfc339da6a7f20afbe7733eff9846f6d6a5466aa4c6667c0"
688 | url: "https://pub.dev"
689 | source: hosted
690 | version: "1.0.2"
691 | web_socket_channel:
692 | dependency: transitive
693 | description:
694 | name: web_socket_channel
695 | sha256: ca49c0bc209c687b887f30527fb6a9d80040b072cc2990f34b9bec3e7663101b
696 | url: "https://pub.dev"
697 | source: hosted
698 | version: "2.3.0"
699 | win32:
700 | dependency: transitive
701 | description:
702 | name: win32
703 | sha256: c9ebe7ee4ab0c2194e65d3a07d8c54c5d00bb001b76081c4a04cdb8448b59e46
704 | url: "https://pub.dev"
705 | source: hosted
706 | version: "3.1.3"
707 | xdg_directories:
708 | dependency: transitive
709 | description:
710 | name: xdg_directories
711 | sha256: ee1505df1426458f7f60aac270645098d318a8b4766d85fde75f76f2e21807d1
712 | url: "https://pub.dev"
713 | source: hosted
714 | version: "1.0.0"
715 | yaml:
716 | dependency: transitive
717 | description:
718 | name: yaml
719 | sha256: "23812a9b125b48d4007117254bca50abb6c712352927eece9e155207b1db2370"
720 | url: "https://pub.dev"
721 | source: hosted
722 | version: "3.1.1"
723 | sdks:
724 | dart: ">=2.19.2 <3.0.0"
725 | flutter: ">=3.0.0"
726 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | name: chatgpt
3 | description: A new Flutter project.
4 | publish_to: none
5 | version: 1.0.0+1
6 | environment:
7 | sdk: '>=2.19.2 <3.0.0'
8 | dependencies:
9 | flutter:
10 | sdk: flutter
11 | cupertino_icons: ^1.0.2
12 | google_fonts: ^4.0.3
13 | iconsax: ^0.0.8
14 | flutter_spinkit: ^5.1.0
15 | chat_gpt_flutter: ^1.0.6
16 | freezed: ^2.3.2
17 | freezed_annotation: ^2.2.0
18 | build_runner: ^2.3.3
19 | flutter_bloc: ^8.1.2
20 | dev_dependencies:
21 | flutter_test:
22 | sdk: flutter
23 | flutter_lints: ^2.0.0
24 | flutter:
25 | uses-material-design: true
26 | assets:
27 | - assets/
28 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility in the flutter_test package. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:chatgpt/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(const MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------