├── .gitignore
├── .metadata
├── LICENSE
├── README.md
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ ├── libs
│ │ └── com.microsoft.device.display.displaymask.jar
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── clipsub
│ │ │ │ └── steamclient
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable
│ │ │ ├── launch_background.xml
│ │ │ └── steam_logo.png
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-ldpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── settings.gradle
└── settings_aar.gradle
├── assets
└── images
│ ├── fracture_case.png
│ ├── halloween_chest.png
│ ├── header_logo.png
│ ├── square_enix_promo.png
│ ├── staff_of_divine_ascension.png
│ ├── supply_key.png
│ └── transversant_soul.png
├── clear_cert.sh
├── 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
├── launch_ios_emu.sh
├── lib
├── api
│ ├── api_auth.dart
│ ├── api_product.dart
│ ├── factory_community.dart
│ └── factory_steamstore.dart
├── common
│ ├── predefined_colors.dart
│ └── static_data.dart
├── desktop
│ ├── desktop_app.dart
│ └── views
│ │ └── widgets
│ │ └── top
│ │ ├── icon_button.dart
│ │ └── menu_bar.dart
├── enums
│ └── viewstate.dart
├── localization
│ ├── en.json
│ └── vi.json
├── locator.dart
├── main.dart
├── models
│ ├── price.dart
│ ├── product.dart
│ └── user.dart
├── provider_setup.dart
├── router.dart
├── services
│ ├── authentication_service.dart
│ └── navigation_service.dart
├── utils
│ ├── svg_helper.dart
│ ├── utils_colors.dart
│ └── utils_numeric.dart
├── views
│ ├── layouts
│ │ └── base_scaffold.dart
│ ├── screens
│ │ ├── app_page.dart
│ │ ├── chat.dart
│ │ ├── chat_threads.dart
│ │ ├── duo_page.dart
│ │ ├── login.dart
│ │ ├── market.dart
│ │ ├── playground.dart
│ │ ├── profile.dart
│ │ ├── steam_guard.dart
│ │ └── storefront_v2.dart
│ ├── tab_layout.dart
│ └── widgets
│ │ ├── appbar
│ │ └── steam_appbar.dart
│ │ ├── auth
│ │ └── custom_input.dart
│ │ ├── boardview
│ │ ├── board_item_object.dart
│ │ └── board_list_object.dart
│ │ ├── chat
│ │ └── input_area.dart
│ │ ├── drawer
│ │ ├── custom_drawer.dart
│ │ └── drawer_expansion_widget.dart
│ │ ├── hex_color.dart
│ │ ├── market
│ │ ├── market_item.dart
│ │ └── top_item.dart
│ │ ├── profile
│ │ ├── comment_input.dart
│ │ ├── comment_section.dart
│ │ ├── online_friends.dart
│ │ ├── profile_main.dart
│ │ ├── recently_played_games.dart
│ │ └── statistic_row.dart
│ │ └── storefront
│ │ ├── browse_by.dart
│ │ ├── carousel
│ │ ├── carousel_v2.dart
│ │ └── custom_scroll_physics.dart
│ │ ├── featured_content.dart
│ │ ├── search_bar.dart
│ │ ├── section_header.dart
│ │ ├── section_onsale.dart
│ │ └── type-buttons.dart
└── vms
│ ├── README.md
│ └── auth_vm.dart
├── pubspec.yaml
└── test
└── widget_test.dart
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Exceptions to above rules.
44 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
45 |
46 | # Locks
47 | pubspec.lock
48 |
49 | # ENVs
50 | .env.*
51 | .env
52 |
53 | # Generated
54 | *.xcconfig
55 | Podfile
56 | .vscode/
57 | Podfile.lock
58 | *.xcworkspacedata
59 |
60 | # Docs
61 | docs/
62 |
--------------------------------------------------------------------------------
/.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 and should not be manually edited.
5 |
6 | version:
7 | revision: bbfbf1770cca2da7c82e887e4e4af910034800b6
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Clip-sub
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.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # SteamClient Proto
2 |
3 | An UI-only Steam client app, for fun.
4 |
5 | 
6 |
7 | ## Getting Started
8 |
9 | This app is built with [Flutter](https://flutter.dev/) (dev branch). It is inspired by [Steam mobile app design](https://dribbble.com/shots/8143099-Steam-mobile-app-Redesign-UI) by Aveg Vanetsyan and [the one](https://dribbble.com/shots/10537483-Steam-Mobile-Redesign-Concept) by George Shishov, although some screens are modified from Steam Chat app, which is decent, by my standard.
10 |
11 | TODO:
12 |
13 | - Integrating real Steam's public API into the app, including Featured, deals, searching.
14 | - Complete User Preferences screen.
15 | - Countdown animation for Steam Guard.
16 | - Apply new design.
17 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 30
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | lintOptions {
36 | disable 'InvalidPackage'
37 | }
38 |
39 | defaultConfig {
40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41 | applicationId "com.clipsub.steamclient"
42 | minSdkVersion 21
43 | targetSdkVersion 30
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | }
47 |
48 | buildTypes {
49 | release {
50 | // TODO: Add your own signing config for the release build.
51 | // Signing with the debug keys for now, so `flutter run --release` works.
52 | signingConfig signingConfigs.debug
53 | }
54 | }
55 | }
56 |
57 | flutter {
58 | source '../..'
59 | }
60 |
61 | dependencies {
62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
63 | }
64 |
--------------------------------------------------------------------------------
/android/app/libs/com.microsoft.device.display.displaymask.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/android/app/libs/com.microsoft.device.display.displaymask.jar
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
8 |
12 |
19 |
23 |
27 |
28 |
29 |
30 |
31 |
32 |
34 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/clipsub/steamclient/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.clipsub.steamclient
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | -
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/steam_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/android/app/src/main/res/drawable/steam_logo.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-ldpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/android/app/src/main/res/mipmap-ldpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
14 |
17 | #0c1724
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.4.31'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
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/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.enableR8=true
3 | android.useAndroidX=true
4 | android.enableJetifier=true
5 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
7 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/android/settings_aar.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/assets/images/fracture_case.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/assets/images/fracture_case.png
--------------------------------------------------------------------------------
/assets/images/halloween_chest.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/assets/images/halloween_chest.png
--------------------------------------------------------------------------------
/assets/images/header_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/assets/images/header_logo.png
--------------------------------------------------------------------------------
/assets/images/square_enix_promo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/assets/images/square_enix_promo.png
--------------------------------------------------------------------------------
/assets/images/staff_of_divine_ascension.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/assets/images/staff_of_divine_ascension.png
--------------------------------------------------------------------------------
/assets/images/supply_key.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/assets/images/supply_key.png
--------------------------------------------------------------------------------
/assets/images/transversant_soul.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/assets/images/transversant_soul.png
--------------------------------------------------------------------------------
/clear_cert.sh:
--------------------------------------------------------------------------------
1 | flutter config --clear-ios-signing-cert
2 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
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 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
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 | A162F18DFCAFCD5227572D8A /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 31E92F4B79825935835BCFF4 /* Pods_Runner.framework */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXCopyFilesBuildPhase section */
20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
21 | isa = PBXCopyFilesBuildPhase;
22 | buildActionMask = 2147483647;
23 | dstPath = "";
24 | dstSubfolderSpec = 10;
25 | files = (
26 | );
27 | name = "Embed Frameworks";
28 | runOnlyForDeploymentPostprocessing = 0;
29 | };
30 | /* End PBXCopyFilesBuildPhase section */
31 |
32 | /* Begin PBXFileReference section */
33 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
34 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
35 | 31E92F4B79825935835BCFF4 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
36 | 3357BDD50AD8ABCF44E02780 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
37 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
38 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
39 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
40 | 7912D9D5240DFA1CC281211E /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
41 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
42 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
43 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
44 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
45 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
46 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
47 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
48 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
49 | CA00829F61036175468ED5A9 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
50 | /* End PBXFileReference section */
51 |
52 | /* Begin PBXFrameworksBuildPhase section */
53 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
54 | isa = PBXFrameworksBuildPhase;
55 | buildActionMask = 2147483647;
56 | files = (
57 | A162F18DFCAFCD5227572D8A /* Pods_Runner.framework in Frameworks */,
58 | );
59 | runOnlyForDeploymentPostprocessing = 0;
60 | };
61 | /* End PBXFrameworksBuildPhase section */
62 |
63 | /* Begin PBXGroup section */
64 | 24DD628FB28D27E74EB7F444 /* Frameworks */ = {
65 | isa = PBXGroup;
66 | children = (
67 | 31E92F4B79825935835BCFF4 /* Pods_Runner.framework */,
68 | );
69 | name = Frameworks;
70 | sourceTree = "";
71 | };
72 | 702A4C7EEB21A3E15778EC68 /* Pods */ = {
73 | isa = PBXGroup;
74 | children = (
75 | CA00829F61036175468ED5A9 /* Pods-Runner.debug.xcconfig */,
76 | 3357BDD50AD8ABCF44E02780 /* Pods-Runner.release.xcconfig */,
77 | 7912D9D5240DFA1CC281211E /* Pods-Runner.profile.xcconfig */,
78 | );
79 | name = Pods;
80 | path = Pods;
81 | sourceTree = "";
82 | };
83 | 9740EEB11CF90186004384FC /* Flutter */ = {
84 | isa = PBXGroup;
85 | children = (
86 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
87 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
88 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
89 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
90 | );
91 | name = Flutter;
92 | sourceTree = "";
93 | };
94 | 97C146E51CF9000F007C117D = {
95 | isa = PBXGroup;
96 | children = (
97 | 9740EEB11CF90186004384FC /* Flutter */,
98 | 97C146F01CF9000F007C117D /* Runner */,
99 | 97C146EF1CF9000F007C117D /* Products */,
100 | 702A4C7EEB21A3E15778EC68 /* Pods */,
101 | 24DD628FB28D27E74EB7F444 /* Frameworks */,
102 | );
103 | sourceTree = "";
104 | };
105 | 97C146EF1CF9000F007C117D /* Products */ = {
106 | isa = PBXGroup;
107 | children = (
108 | 97C146EE1CF9000F007C117D /* Runner.app */,
109 | );
110 | name = Products;
111 | sourceTree = "";
112 | };
113 | 97C146F01CF9000F007C117D /* Runner */ = {
114 | isa = PBXGroup;
115 | children = (
116 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
117 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
118 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
119 | 97C147021CF9000F007C117D /* Info.plist */,
120 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
121 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
122 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
123 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
124 | );
125 | path = Runner;
126 | sourceTree = "";
127 | };
128 | /* End PBXGroup section */
129 |
130 | /* Begin PBXNativeTarget section */
131 | 97C146ED1CF9000F007C117D /* Runner */ = {
132 | isa = PBXNativeTarget;
133 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
134 | buildPhases = (
135 | 8B288459C63AB5E634DC5EBA /* [CP] Check Pods Manifest.lock */,
136 | 9740EEB61CF901F6004384FC /* Run Script */,
137 | 97C146EA1CF9000F007C117D /* Sources */,
138 | 97C146EB1CF9000F007C117D /* Frameworks */,
139 | 97C146EC1CF9000F007C117D /* Resources */,
140 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
142 | 717162A18D9414FE3C5F677B /* [CP] Embed Pods Frameworks */,
143 | 4476A5CD139D5DEA062EA819 /* [CP] Copy Pods Resources */,
144 | );
145 | buildRules = (
146 | );
147 | dependencies = (
148 | );
149 | name = Runner;
150 | productName = Runner;
151 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
152 | productType = "com.apple.product-type.application";
153 | };
154 | /* End PBXNativeTarget section */
155 |
156 | /* Begin PBXProject section */
157 | 97C146E61CF9000F007C117D /* Project object */ = {
158 | isa = PBXProject;
159 | attributes = {
160 | LastUpgradeCheck = 1020;
161 | ORGANIZATIONNAME = "";
162 | TargetAttributes = {
163 | 97C146ED1CF9000F007C117D = {
164 | CreatedOnToolsVersion = 7.3.1;
165 | LastSwiftMigration = 1100;
166 | };
167 | };
168 | };
169 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
170 | compatibilityVersion = "Xcode 9.3";
171 | developmentRegion = en;
172 | hasScannedForEncodings = 0;
173 | knownRegions = (
174 | en,
175 | Base,
176 | );
177 | mainGroup = 97C146E51CF9000F007C117D;
178 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
179 | projectDirPath = "";
180 | projectRoot = "";
181 | targets = (
182 | 97C146ED1CF9000F007C117D /* Runner */,
183 | );
184 | };
185 | /* End PBXProject section */
186 |
187 | /* Begin PBXResourcesBuildPhase section */
188 | 97C146EC1CF9000F007C117D /* Resources */ = {
189 | isa = PBXResourcesBuildPhase;
190 | buildActionMask = 2147483647;
191 | files = (
192 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
193 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
194 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
195 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
196 | );
197 | runOnlyForDeploymentPostprocessing = 0;
198 | };
199 | /* End PBXResourcesBuildPhase section */
200 |
201 | /* Begin PBXShellScriptBuildPhase section */
202 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
203 | isa = PBXShellScriptBuildPhase;
204 | buildActionMask = 2147483647;
205 | files = (
206 | );
207 | inputPaths = (
208 | );
209 | name = "Thin Binary";
210 | outputPaths = (
211 | );
212 | runOnlyForDeploymentPostprocessing = 0;
213 | shellPath = /bin/sh;
214 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
215 | };
216 | 4476A5CD139D5DEA062EA819 /* [CP] Copy Pods Resources */ = {
217 | isa = PBXShellScriptBuildPhase;
218 | buildActionMask = 2147483647;
219 | files = (
220 | );
221 | inputFileListPaths = (
222 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
223 | );
224 | name = "[CP] Copy Pods Resources";
225 | outputFileListPaths = (
226 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
227 | );
228 | runOnlyForDeploymentPostprocessing = 0;
229 | shellPath = /bin/sh;
230 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
231 | showEnvVarsInLog = 0;
232 | };
233 | 717162A18D9414FE3C5F677B /* [CP] Embed Pods Frameworks */ = {
234 | isa = PBXShellScriptBuildPhase;
235 | buildActionMask = 2147483647;
236 | files = (
237 | );
238 | inputFileListPaths = (
239 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
240 | );
241 | name = "[CP] Embed Pods Frameworks";
242 | outputFileListPaths = (
243 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
244 | );
245 | runOnlyForDeploymentPostprocessing = 0;
246 | shellPath = /bin/sh;
247 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
248 | showEnvVarsInLog = 0;
249 | };
250 | 8B288459C63AB5E634DC5EBA /* [CP] Check Pods Manifest.lock */ = {
251 | isa = PBXShellScriptBuildPhase;
252 | buildActionMask = 2147483647;
253 | files = (
254 | );
255 | inputFileListPaths = (
256 | );
257 | inputPaths = (
258 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
259 | "${PODS_ROOT}/Manifest.lock",
260 | );
261 | name = "[CP] Check Pods Manifest.lock";
262 | outputFileListPaths = (
263 | );
264 | outputPaths = (
265 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
266 | );
267 | runOnlyForDeploymentPostprocessing = 0;
268 | shellPath = /bin/sh;
269 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
270 | showEnvVarsInLog = 0;
271 | };
272 | 9740EEB61CF901F6004384FC /* Run Script */ = {
273 | isa = PBXShellScriptBuildPhase;
274 | buildActionMask = 2147483647;
275 | files = (
276 | );
277 | inputPaths = (
278 | );
279 | name = "Run Script";
280 | outputPaths = (
281 | );
282 | runOnlyForDeploymentPostprocessing = 0;
283 | shellPath = /bin/sh;
284 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
285 | };
286 | /* End PBXShellScriptBuildPhase section */
287 |
288 | /* Begin PBXSourcesBuildPhase section */
289 | 97C146EA1CF9000F007C117D /* Sources */ = {
290 | isa = PBXSourcesBuildPhase;
291 | buildActionMask = 2147483647;
292 | files = (
293 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
294 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
295 | );
296 | runOnlyForDeploymentPostprocessing = 0;
297 | };
298 | /* End PBXSourcesBuildPhase section */
299 |
300 | /* Begin PBXVariantGroup section */
301 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
302 | isa = PBXVariantGroup;
303 | children = (
304 | 97C146FB1CF9000F007C117D /* Base */,
305 | );
306 | name = Main.storyboard;
307 | sourceTree = "";
308 | };
309 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
310 | isa = PBXVariantGroup;
311 | children = (
312 | 97C147001CF9000F007C117D /* Base */,
313 | );
314 | name = LaunchScreen.storyboard;
315 | sourceTree = "";
316 | };
317 | /* End PBXVariantGroup section */
318 |
319 | /* Begin XCBuildConfiguration section */
320 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
321 | isa = XCBuildConfiguration;
322 | buildSettings = {
323 | ALWAYS_SEARCH_USER_PATHS = NO;
324 | CLANG_ANALYZER_NONNULL = YES;
325 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
326 | CLANG_CXX_LIBRARY = "libc++";
327 | CLANG_ENABLE_MODULES = YES;
328 | CLANG_ENABLE_OBJC_ARC = YES;
329 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
330 | CLANG_WARN_BOOL_CONVERSION = YES;
331 | CLANG_WARN_COMMA = YES;
332 | CLANG_WARN_CONSTANT_CONVERSION = YES;
333 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
334 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
335 | CLANG_WARN_EMPTY_BODY = YES;
336 | CLANG_WARN_ENUM_CONVERSION = YES;
337 | CLANG_WARN_INFINITE_RECURSION = YES;
338 | CLANG_WARN_INT_CONVERSION = YES;
339 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
340 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
341 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
342 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
343 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
344 | CLANG_WARN_STRICT_PROTOTYPES = YES;
345 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
346 | CLANG_WARN_UNREACHABLE_CODE = YES;
347 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
348 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
349 | COPY_PHASE_STRIP = NO;
350 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
351 | ENABLE_NS_ASSERTIONS = NO;
352 | ENABLE_STRICT_OBJC_MSGSEND = YES;
353 | GCC_C_LANGUAGE_STANDARD = gnu99;
354 | GCC_NO_COMMON_BLOCKS = YES;
355 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
356 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
357 | GCC_WARN_UNDECLARED_SELECTOR = YES;
358 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
359 | GCC_WARN_UNUSED_FUNCTION = YES;
360 | GCC_WARN_UNUSED_VARIABLE = YES;
361 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
362 | MTL_ENABLE_DEBUG_INFO = NO;
363 | SDKROOT = iphoneos;
364 | SUPPORTED_PLATFORMS = iphoneos;
365 | TARGETED_DEVICE_FAMILY = "1,2";
366 | VALIDATE_PRODUCT = YES;
367 | };
368 | name = Profile;
369 | };
370 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
371 | isa = XCBuildConfiguration;
372 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
373 | buildSettings = {
374 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
375 | CLANG_ENABLE_MODULES = YES;
376 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
377 | ENABLE_BITCODE = NO;
378 | FRAMEWORK_SEARCH_PATHS = (
379 | "$(inherited)",
380 | "$(PROJECT_DIR)/Flutter",
381 | );
382 | INFOPLIST_FILE = Runner/Info.plist;
383 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
384 | LIBRARY_SEARCH_PATHS = (
385 | "$(inherited)",
386 | "$(PROJECT_DIR)/Flutter",
387 | );
388 | PRODUCT_BUNDLE_IDENTIFIER = com.clipsub.steamclient;
389 | PRODUCT_NAME = "$(TARGET_NAME)";
390 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
391 | SWIFT_VERSION = 5.0;
392 | VERSIONING_SYSTEM = "apple-generic";
393 | };
394 | name = Profile;
395 | };
396 | 97C147031CF9000F007C117D /* Debug */ = {
397 | isa = XCBuildConfiguration;
398 | buildSettings = {
399 | ALWAYS_SEARCH_USER_PATHS = NO;
400 | CLANG_ANALYZER_NONNULL = YES;
401 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
402 | CLANG_CXX_LIBRARY = "libc++";
403 | CLANG_ENABLE_MODULES = YES;
404 | CLANG_ENABLE_OBJC_ARC = YES;
405 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
406 | CLANG_WARN_BOOL_CONVERSION = YES;
407 | CLANG_WARN_COMMA = YES;
408 | CLANG_WARN_CONSTANT_CONVERSION = YES;
409 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
410 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
411 | CLANG_WARN_EMPTY_BODY = YES;
412 | CLANG_WARN_ENUM_CONVERSION = YES;
413 | CLANG_WARN_INFINITE_RECURSION = YES;
414 | CLANG_WARN_INT_CONVERSION = YES;
415 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
416 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
417 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
418 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
419 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
420 | CLANG_WARN_STRICT_PROTOTYPES = YES;
421 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
422 | CLANG_WARN_UNREACHABLE_CODE = YES;
423 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
424 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
425 | COPY_PHASE_STRIP = NO;
426 | DEBUG_INFORMATION_FORMAT = dwarf;
427 | ENABLE_STRICT_OBJC_MSGSEND = YES;
428 | ENABLE_TESTABILITY = YES;
429 | GCC_C_LANGUAGE_STANDARD = gnu99;
430 | GCC_DYNAMIC_NO_PIC = NO;
431 | GCC_NO_COMMON_BLOCKS = YES;
432 | GCC_OPTIMIZATION_LEVEL = 0;
433 | GCC_PREPROCESSOR_DEFINITIONS = (
434 | "DEBUG=1",
435 | "$(inherited)",
436 | );
437 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
438 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
439 | GCC_WARN_UNDECLARED_SELECTOR = YES;
440 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
441 | GCC_WARN_UNUSED_FUNCTION = YES;
442 | GCC_WARN_UNUSED_VARIABLE = YES;
443 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
444 | MTL_ENABLE_DEBUG_INFO = YES;
445 | ONLY_ACTIVE_ARCH = YES;
446 | SDKROOT = iphoneos;
447 | TARGETED_DEVICE_FAMILY = "1,2";
448 | };
449 | name = Debug;
450 | };
451 | 97C147041CF9000F007C117D /* Release */ = {
452 | isa = XCBuildConfiguration;
453 | buildSettings = {
454 | ALWAYS_SEARCH_USER_PATHS = NO;
455 | CLANG_ANALYZER_NONNULL = YES;
456 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
457 | CLANG_CXX_LIBRARY = "libc++";
458 | CLANG_ENABLE_MODULES = YES;
459 | CLANG_ENABLE_OBJC_ARC = YES;
460 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
461 | CLANG_WARN_BOOL_CONVERSION = YES;
462 | CLANG_WARN_COMMA = YES;
463 | CLANG_WARN_CONSTANT_CONVERSION = YES;
464 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
465 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
466 | CLANG_WARN_EMPTY_BODY = YES;
467 | CLANG_WARN_ENUM_CONVERSION = YES;
468 | CLANG_WARN_INFINITE_RECURSION = YES;
469 | CLANG_WARN_INT_CONVERSION = YES;
470 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
471 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
472 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
473 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
474 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
475 | CLANG_WARN_STRICT_PROTOTYPES = YES;
476 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
477 | CLANG_WARN_UNREACHABLE_CODE = YES;
478 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
479 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
480 | COPY_PHASE_STRIP = NO;
481 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
482 | ENABLE_NS_ASSERTIONS = NO;
483 | ENABLE_STRICT_OBJC_MSGSEND = YES;
484 | GCC_C_LANGUAGE_STANDARD = gnu99;
485 | GCC_NO_COMMON_BLOCKS = YES;
486 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
487 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
488 | GCC_WARN_UNDECLARED_SELECTOR = YES;
489 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
490 | GCC_WARN_UNUSED_FUNCTION = YES;
491 | GCC_WARN_UNUSED_VARIABLE = YES;
492 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
493 | MTL_ENABLE_DEBUG_INFO = NO;
494 | SDKROOT = iphoneos;
495 | SUPPORTED_PLATFORMS = iphoneos;
496 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
497 | TARGETED_DEVICE_FAMILY = "1,2";
498 | VALIDATE_PRODUCT = YES;
499 | };
500 | name = Release;
501 | };
502 | 97C147061CF9000F007C117D /* Debug */ = {
503 | isa = XCBuildConfiguration;
504 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
505 | buildSettings = {
506 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
507 | CLANG_ENABLE_MODULES = YES;
508 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
509 | ENABLE_BITCODE = NO;
510 | FRAMEWORK_SEARCH_PATHS = (
511 | "$(inherited)",
512 | "$(PROJECT_DIR)/Flutter",
513 | );
514 | INFOPLIST_FILE = Runner/Info.plist;
515 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
516 | LIBRARY_SEARCH_PATHS = (
517 | "$(inherited)",
518 | "$(PROJECT_DIR)/Flutter",
519 | );
520 | PRODUCT_BUNDLE_IDENTIFIER = com.clipsub.steamclient;
521 | PRODUCT_NAME = "$(TARGET_NAME)";
522 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
523 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
524 | SWIFT_VERSION = 5.0;
525 | VERSIONING_SYSTEM = "apple-generic";
526 | };
527 | name = Debug;
528 | };
529 | 97C147071CF9000F007C117D /* Release */ = {
530 | isa = XCBuildConfiguration;
531 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
532 | buildSettings = {
533 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
534 | CLANG_ENABLE_MODULES = YES;
535 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
536 | ENABLE_BITCODE = NO;
537 | FRAMEWORK_SEARCH_PATHS = (
538 | "$(inherited)",
539 | "$(PROJECT_DIR)/Flutter",
540 | );
541 | INFOPLIST_FILE = Runner/Info.plist;
542 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
543 | LIBRARY_SEARCH_PATHS = (
544 | "$(inherited)",
545 | "$(PROJECT_DIR)/Flutter",
546 | );
547 | PRODUCT_BUNDLE_IDENTIFIER = com.clipsub.steamclient;
548 | PRODUCT_NAME = "$(TARGET_NAME)";
549 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
550 | SWIFT_VERSION = 5.0;
551 | VERSIONING_SYSTEM = "apple-generic";
552 | };
553 | name = Release;
554 | };
555 | /* End XCBuildConfiguration section */
556 |
557 | /* Begin XCConfigurationList section */
558 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
559 | isa = XCConfigurationList;
560 | buildConfigurations = (
561 | 97C147031CF9000F007C117D /* Debug */,
562 | 97C147041CF9000F007C117D /* Release */,
563 | 249021D3217E4FDB00AE95B9 /* Profile */,
564 | );
565 | defaultConfigurationIsVisible = 0;
566 | defaultConfigurationName = Release;
567 | };
568 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
569 | isa = XCConfigurationList;
570 | buildConfigurations = (
571 | 97C147061CF9000F007C117D /* Debug */,
572 | 97C147071CF9000F007C117D /* Release */,
573 | 249021D4217E4FDB00AE95B9 /* Profile */,
574 | );
575 | defaultConfigurationIsVisible = 0;
576 | defaultConfigurationName = Release;
577 | };
578 | /* End XCConfigurationList section */
579 | };
580 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
581 | }
582 |
--------------------------------------------------------------------------------
/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 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/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/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/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/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/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/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/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/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/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/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/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/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/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/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/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/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/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/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/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/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/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/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/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/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/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/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/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/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/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/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/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/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/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 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | Steam Proto
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/launch_ios_emu.sh:
--------------------------------------------------------------------------------
1 | flutter emulators --launch apple_ios_simulator
--------------------------------------------------------------------------------
/lib/api/api_auth.dart:
--------------------------------------------------------------------------------
1 | class ApiAuth {
2 | Future login(String username, String password) {
3 | return Future.delayed(Duration(seconds: 2), () {
4 | return true;
5 | });
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/lib/api/api_product.dart:
--------------------------------------------------------------------------------
1 | import 'package:steamclient/api/factory_steamstore.dart';
2 |
3 | class ApiProduct {
4 | static void getLatestProduct() {
5 | ApiClientSteamStore.getUrl('appdetails?appids=57690');
6 | }
7 |
8 | static void getFeaturedProducts() {
9 |
10 | }
11 | }
--------------------------------------------------------------------------------
/lib/api/factory_community.dart:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/lib/api/factory_community.dart
--------------------------------------------------------------------------------
/lib/api/factory_steamstore.dart:
--------------------------------------------------------------------------------
1 | import 'package:dio/dio.dart';
2 |
3 | class ApiClientSteamStore {
4 | static String baseUrl = 'https://store.steampowered.com/api/';
5 | static final defaultPort = 80;
6 |
7 | static BaseOptions options = new BaseOptions(
8 | baseUrl: baseUrl,
9 | connectTimeout: 5000,
10 | receiveTimeout: 3000
11 | );
12 |
13 | static Dio _httpClient = new Dio(options);
14 |
15 | static getUrl(endpoint) async {
16 | Response response = await _httpClient.get(endpoint);
17 | return response;
18 | }
19 | }
--------------------------------------------------------------------------------
/lib/common/predefined_colors.dart:
--------------------------------------------------------------------------------
1 | library predefined_colors;
2 |
3 | import 'package:steamclient/views/widgets/hex_color.dart';
4 |
5 | class AppColors {
6 | static HexColor ALUMINIUM = HexColor('#98989B');
7 | static HexColor ALMOST_BLACK = HexColor('#03141E');
8 | static HexColor AVOCADO = HexColor('#8FB93B');
9 | static HexColor COAL = HexColor('#393c43');
10 | static HexColor COOL_GRAY = HexColor('#9DA3A8');
11 | static HexColor BLUE = HexColor('#198cff');
12 | static HexColor DARK = HexColor('#2E3136');
13 | static HexColor TUNGSTEN = HexColor('#2F3237');
14 | static HexColor DARK_BLUE = HexColor('#15243C');
15 | static HexColor DARK_BLUE_GREY = HexColor('#18364E');
16 | static HexColor DARK_GREY_BLUE = HexColor('#2A4652');
17 | static HexColor DIRTY_GREEN = HexColor('#5E7628');
18 | static HexColor DUSTY_ORANGE = HexColor('#F18623');
19 | static HexColor ELECTRIC_LIME = HexColor('#A1F410');
20 | static HexColor FAWN = HexColor('#CFA781');
21 | static HexColor GUNMETAL = HexColor('#505A66');
22 | static HexColor GUNMETAL_LIGHT = HexColor('#4f535c');
23 | static HexColor LIGHT_BLUE = HexColor('#6DCFF6');
24 | static HexColor LIGHT_GREY_BLUE = HexColor('#98B4CD');
25 | static HexColor LIGHT_NAVY_BLUE = HexColor('#2F6181');
26 | static HexColor METALLIC_BLUE = HexColor('#4F708B');
27 | static HexColor MUTED_BLUE = HexColor('#41709F');
28 | static HexColor PEA_GREEN = HexColor('#94AA0E');
29 | static HexColor POWDER_BLUE = HexColor('#ACDBF5');
30 | static HexColor RED_PURPLE = HexColor('#86223F');
31 | static HexColor SECONDARY_TEXT = HexColor('#BDBDBD');
32 | static HexColor SLATE = HexColor('#536C7B');
33 | static HexColor SLATE_GREY = HexColor('#6D6D6D');
34 | static HexColor VERY_PALE_GREEN = HexColor('#D9F5BA');
35 | static HexColor CHARCOAL_GREY = HexColor('#3A3D44');
36 | static HexColor IRON = HexColor('#45464A');
37 | static HexColor WHITE = HexColor('#FFFFFF');
38 | }
39 |
--------------------------------------------------------------------------------
/lib/common/static_data.dart:
--------------------------------------------------------------------------------
1 | const String SteamTablayout = 'SteamTablayout';
2 |
3 | const String PlaygroundRoute = 'Playground';
4 |
5 | const String LoginRoute = 'Login';
6 | const String SteamGuardRoute = 'SteamGuard';
7 | const String StoreFrontRoute = 'StoreFront';
8 | const String ChatThreadsRoute = 'ChatThreads';
9 | const String ChatRoute = 'Chat';
10 | const String ProfileRoute = 'Prpofile';
11 | const String AppPageRoute = 'AppPage';
12 | const String MarketRoute = 'Market';
13 |
--------------------------------------------------------------------------------
/lib/desktop/desktop_app.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:steamclient/desktop/views/widgets/top/menu_bar.dart';
3 |
4 | class DesktopApp extends StatelessWidget {
5 | @override
6 | Widget build(BuildContext context) {
7 | return MaterialApp(
8 | debugShowCheckedModeBanner: false,
9 | home: Container(
10 | color: Colors.green,
11 | width: 1024,
12 | height: 768,
13 | child: Column(
14 | children: [
15 | MenuBar()
16 | ],
17 | ),
18 | ),
19 | title: 'Steam',
20 | theme: ThemeData(
21 | primarySwatch: Colors.blueGrey, backgroundColor: Colors.grey[800]),
22 | );
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/lib/desktop/views/widgets/top/icon_button.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class CustomIconButton extends StatelessWidget {
4 | @override
5 | Widget build(BuildContext context) {
6 | return MouseRegion(
7 | onHover: (PointerEvent e) {
8 | print('xxx');
9 | },
10 | child: Container(
11 | child: Icon(Icons.menu),
12 | width: 40,
13 | height: 40,
14 | ),
15 | );
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/lib/desktop/views/widgets/top/menu_bar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:steamclient/desktop/views/widgets/top/icon_button.dart';
3 |
4 | class MenuBar extends StatelessWidget {
5 | @override
6 | Widget build(BuildContext context) {
7 | return Container(
8 | height: 40,
9 | color: Colors.black45,
10 | child: Row(
11 | children: [
12 | CustomIconButton()
13 | ],
14 | ),
15 | );
16 | }
17 | }
--------------------------------------------------------------------------------
/lib/enums/viewstate.dart:
--------------------------------------------------------------------------------
1 | enum AuthState { Anonymous, Authenticated }
2 |
--------------------------------------------------------------------------------
/lib/localization/en.json:
--------------------------------------------------------------------------------
1 | {
2 | "app_name": "Steam Client"
3 | }
4 |
--------------------------------------------------------------------------------
/lib/localization/vi.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/lib/localization/vi.json
--------------------------------------------------------------------------------
/lib/locator.dart:
--------------------------------------------------------------------------------
1 | import 'package:get_it/get_it.dart';
2 | import 'package:steamclient/services/authentication_service.dart';
3 | import 'services/navigation_service.dart';
4 |
5 | GetIt locator = GetIt.instance;
6 |
7 | void setupLocator() {
8 | locator.registerLazySingleton(() => NavigationService());
9 | locator.registerLazySingleton(() => AuthenticationService());
10 | }
11 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:flutter/services.dart';
5 | import 'package:provider/provider.dart';
6 | import 'package:flutter_dotenv/flutter_dotenv.dart';
7 | import 'package:steamclient/common/predefined_colors.dart';
8 |
9 | import 'package:steamclient/common/static_data.dart' as routes;
10 | import 'package:steamclient/desktop/desktop_app.dart';
11 | import 'package:steamclient/router.dart' as router;
12 | import 'package:steamclient/services/navigation_service.dart';
13 | import 'package:steamclient/vms/auth_vm.dart';
14 |
15 | import 'locator.dart';
16 |
17 | const platform = const MethodChannel('duosdk.microsoft.dev');
18 |
19 | Future main() async {
20 | await DotEnv().load('.env');
21 |
22 | setupLocator();
23 | runApp(Platform.isMacOS ? DesktopApp() : SteamClientApp());
24 | }
25 |
26 | class SteamClientApp extends StatelessWidget {
27 | @override
28 | Widget build(BuildContext context) {
29 | return MultiProvider(
30 | providers: [ChangeNotifierProvider(create: (_) => AuthViewModel())],
31 | child: MaterialApp(
32 | debugShowCheckedModeBanner: false,
33 | title: 'Steam',
34 | theme: ThemeData(
35 | primaryColor: AppColors.ALMOST_BLACK,
36 | primarySwatch: Colors.grey,
37 | backgroundColor: Colors.grey[800]),
38 | navigatorKey: locator().navigatorKey,
39 | onGenerateRoute: router.generateRoute,
40 | onUnknownRoute: (settings) => MaterialPageRoute(
41 | builder: (context) => Text('Nothing to see here')),
42 | initialRoute: routes.SteamTablayout,
43 | ),
44 | );
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/lib/models/price.dart:
--------------------------------------------------------------------------------
1 | class Price {
2 | String currency;
3 | int initial;
4 | int finalPrice;
5 | int discountPercent;
6 |
7 | Price.fromJson(Map json):
8 | currency = json['currency'],
9 | initial = json['initial'],
10 | finalPrice = json['final_price'];
11 |
12 | Map toJson() => {
13 | 'currency': currency,
14 | 'initial': initial,
15 | 'final_price': finalPrice
16 | };
17 | }
18 |
--------------------------------------------------------------------------------
/lib/models/product.dart:
--------------------------------------------------------------------------------
1 | class Product {
2 | String appName;
3 | String type;
4 | int steamAppId;
5 | int price;
6 | bool isFree;
7 | String detailedDescription;
8 | String aboutTheGame;
9 | String shortDescription;
10 | String spotlightImage;
11 |
12 | Product();
13 |
14 | Product.fromJson(Map json):
15 | appName = json['app_name'],
16 | type = json['type'],
17 | steamAppId = json['steam_app_id'],
18 | price = json['price'],
19 | isFree = json['is_free'],
20 | detailedDescription = json['detailed_description'],
21 | aboutTheGame = json['about_the_game'],
22 | shortDescription = json['short_description'],
23 | spotlightImage = json['spotlight_image'];
24 |
25 | Map toJson() => {
26 | 'app_name': appName,
27 | 'type': type,
28 | 'steam_app_id': steamAppId,
29 | 'price': price,
30 | 'is_free': isFree,
31 | 'detailed_description': detailedDescription,
32 | 'about_the_game': aboutTheGame,
33 | 'short_description': shortDescription,
34 | 'spotlight_image': spotlightImage
35 | };
36 | }
37 |
--------------------------------------------------------------------------------
/lib/models/user.dart:
--------------------------------------------------------------------------------
1 | class User {
2 | String username;
3 | String avatar;
4 | String type;
5 | String playing;
6 | }
7 |
--------------------------------------------------------------------------------
/lib/provider_setup.dart:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Doko-Demo-Doa/steamclient-flutter/a8fdc79f48a28c4c7aa145e12a0052c31034b46f/lib/provider_setup.dart
--------------------------------------------------------------------------------
/lib/router.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter/widgets.dart';
3 | import 'package:steamclient/common/static_data.dart' as routes;
4 | import 'package:steamclient/views/screens/app_page.dart';
5 | import 'package:steamclient/views/screens/chat.dart';
6 | import 'package:steamclient/views/screens/chat_threads.dart';
7 | import 'package:steamclient/views/screens/login.dart';
8 | import 'package:steamclient/views/screens/market.dart';
9 | import 'package:steamclient/views/screens/playground.dart';
10 | import 'package:steamclient/views/screens/profile.dart';
11 | import 'package:steamclient/views/screens/steam_guard.dart';
12 | import 'package:steamclient/views/screens/storefront_v2.dart';
13 |
14 | import 'package:steamclient/views/tab_layout.dart';
15 |
16 | Route generateRoute(RouteSettings settings) {
17 | switch (settings.name) {
18 | case routes.SteamTablayout:
19 | return MaterialPageRoute(builder: (_) => SteamTablayout());
20 |
21 | case routes.PlaygroundRoute:
22 | return MaterialPageRoute(builder: (_) => Playground());
23 | case routes.SteamGuardRoute:
24 | return MaterialPageRoute(builder: (_) => SteamGuard());
25 | case routes.LoginRoute:
26 | return MaterialPageRoute(builder: (_) => LoginScreen());
27 | case routes.StoreFrontRoute:
28 | return MaterialPageRoute(builder: (_) => StoreFrontV2());
29 | case routes.ChatThreadsRoute:
30 | return MaterialPageRoute(builder: (_) => ChatThreads());
31 | case routes.ChatRoute:
32 | return MaterialPageRoute(builder: (_) => Chat());
33 | case routes.ProfileRoute:
34 | return MaterialPageRoute(builder: (_) => Profile());
35 | case routes.MarketRoute:
36 | return MaterialPageRoute(builder: (_) => SteamMarket());
37 | case routes.AppPageRoute:
38 | var appId = settings.arguments as String;
39 | return MaterialPageRoute(builder: (_) => AppPage(appId));
40 | default:
41 | return MaterialPageRoute(
42 | builder: (_) => Scaffold(
43 | body: Center(
44 | child: Text('No path for ${settings.name}'),
45 | ),
46 | ),
47 | );
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/lib/services/authentication_service.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'dart:async';
3 |
4 | import 'package:steamclient/api/api_auth.dart';
5 | import 'package:steamclient/locator.dart';
6 |
7 | class AuthenticationService {
8 | ApiAuth _api = locator();
9 |
10 | StreamController authController = new StreamController();
11 |
12 | Future login(String username, String password) async {
13 | var resp = await _api.login(username, password);
14 | authController.add(resp);
15 | return resp;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/lib/services/navigation_service.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class NavigationService {
4 | final GlobalKey navigatorKey =
5 | new GlobalKey();
6 |
7 | Future navigateTo(String routeName, {dynamic arguments}) {
8 | return navigatorKey.currentState.pushNamed(routeName, arguments: arguments);
9 | }
10 |
11 | void goBack() {
12 | navigatorKey.currentState.pop();
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/lib/utils/svg_helper.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/widgets.dart';
2 | import 'package:steamclient/utils/utils_numeric.dart';
3 |
4 | class SVGHelper {
5 | // Extract an instruction from an SVG command string
6 | RegExp _svgInstructionPattern = new RegExp("([a-zA-Z])([^a-zA-Z]+)");
7 | // Extract coordinates
8 | RegExp _svgCoordinatesPattern = new RegExp("-?\\d*\\.?\\d*");
9 | // Extract SVG path data fields from an SVG input
10 | RegExp _svgPathPattern = new RegExp("""""");
11 |
12 | String extractPathData(String input) {
13 | return _svgPathPattern.allMatches(input).map((e) => e.group(0)).join();
14 | }
15 |
16 | List getCoordinatesGroup(String input, [int groupSize = 4]) {
17 | var listMatched = _svgCoordinatesPattern
18 | .allMatches(input)
19 | .toList()
20 | .where((e) => isNumeric(e.group(0)))
21 | .map((e) => double.parse(e.group(0)))
22 | .toList();
23 |
24 | return listMatched;
25 | }
26 |
27 | Path buildPath(String inputData) {
28 | Path p = Path();
29 | // print(getCoordinatesGroup(inputData));
30 | try {
31 | var matcher = _svgInstructionPattern.allMatches(inputData).toList();
32 |
33 | var lastX = 0.0;
34 | var lastY = 0.0;
35 | var lastX1 = 0.0;
36 | var lastY1 = 0.0;
37 | var subPathStartX = 0.0;
38 | var subPathStartY = 0.0;
39 | var curve = false;
40 |
41 | matcher.forEach((matchElem) {
42 | var command = matchElem.group(1);
43 | var coordinateStr = matchElem.group(2);
44 | // print("[$command]: $coordinateStr");
45 |
46 | switch (command.toLowerCase()) {
47 | case 'm':
48 | var it = coordinateStr.split(',');
49 | var x = double.parse(it[0]);
50 | var y = double.parse(it[1]);
51 |
52 | // Check if command is uppercase:
53 | if (command == command.toUpperCase()) {
54 | subPathStartX = x;
55 | subPathStartY = y;
56 | p.moveTo(x, y);
57 | lastX = x;
58 | lastY = y;
59 | } else {
60 | subPathStartX += x;
61 | subPathStartY += y;
62 | p.moveTo(x, y);
63 | lastX += x;
64 | lastY += y;
65 | }
66 | break;
67 | case 'l':
68 | var it = coordinateStr.split(',');
69 | var x = double.parse(it[0]);
70 | var y = double.parse(it[1]);
71 | if (command == command.toUpperCase()) {
72 | p.lineTo(x, y);
73 | lastX = x;
74 | lastY = y;
75 | } else {
76 | p.relativeLineTo(x, y);
77 | lastX += x;
78 | lastY += y;
79 | }
80 | break;
81 | case 'v':
82 | List coordinates = getCoordinatesGroup(coordinateStr);
83 | var y = coordinates.first;
84 | if (command == command.toUpperCase()) {
85 | p.lineTo(lastX, y);
86 | lastY = y;
87 | } else {
88 | p.relativeLineTo(0.0, y);
89 | lastY += y;
90 | }
91 | break;
92 | case 'h':
93 | List coordinates = getCoordinatesGroup(coordinateStr);
94 | var x = coordinates.first;
95 | if (command == command.toUpperCase()) {
96 | p.lineTo(x, lastY);
97 | lastX = x;
98 | } else {
99 | p.relativeLineTo(x, 0.0);
100 | lastX += x;
101 | }
102 | break;
103 | case 'c':
104 | curve = true;
105 | List coordinates = getCoordinatesGroup(coordinateStr);
106 | var x1 = coordinates[0];
107 | var y1 = coordinates[1];
108 |
109 | var x2 = coordinates[2];
110 | var y2 = coordinates[3];
111 |
112 | var x = coordinates[4];
113 | var y = coordinates[5];
114 |
115 | if (command == command.toLowerCase()) {
116 | x1 += lastX;
117 | x2 += lastX;
118 | x += lastX;
119 | y1 += lastY;
120 | y2 += lastY;
121 | y += lastY;
122 | }
123 |
124 | p.cubicTo(x1, y1, x2, y2, x, y);
125 |
126 | lastX1 = x2;
127 | lastY1 = y2;
128 | lastX = x;
129 | lastY = y;
130 |
131 | break;
132 | case 's':
133 | curve = true;
134 | List coordinates = getCoordinatesGroup(coordinateStr);
135 | var x2 = coordinates[0];
136 | var y2 = coordinates[1];
137 |
138 | var x = coordinates[2];
139 | var y = coordinates[3];
140 |
141 | if (command == command.toLowerCase()) {
142 | x2 += lastX;
143 | x += lastX;
144 | y2 += lastY;
145 | y += lastY;
146 | }
147 |
148 | var x1 = 2 * lastX - lastX1;
149 | var y1 = 2 * lastY - lastY1;
150 |
151 | p.cubicTo(x1, y1, x2, y2, x, y);
152 | lastX1 = x2;
153 | lastY1 = y2;
154 | lastX = x;
155 | lastY = y;
156 |
157 | break;
158 | case 'z':
159 | p.close();
160 | p.moveTo(subPathStartX, subPathStartY);
161 | lastX = subPathStartX;
162 | lastY = subPathStartY;
163 | lastX1 = subPathStartX;
164 | lastY1 = subPathStartY;
165 | break;
166 | default:
167 | throw Error();
168 | }
169 | });
170 |
171 | if (!curve) {
172 | lastX1 = lastX;
173 | lastY1 = lastY;
174 | }
175 |
176 | return p;
177 | } catch (_) {
178 | print(_);
179 | return null;
180 | }
181 | }
182 | }
183 |
--------------------------------------------------------------------------------
/lib/utils/utils_colors.dart:
--------------------------------------------------------------------------------
1 | import 'package:steamclient/views/widgets/hex_color.dart';
2 |
3 | class AppColors {
4 | static var COLOR_SECONDARY_TEXT = HexColor('#BDBDBD');
5 | static var COLOR_SLATE = HexColor('#536C7B');
6 | static var COLOR_AVOCADO = HexColor('#8FB93B');
7 | static var COLOR_COOL_GRAY = HexColor('#9DA3A8');
8 | static var COLOR_MUTED_BLUE = HexColor('#41709F');
9 | static var COLOR_LIGHT_GREY_BLUE = HexColor('#98B4CD');
10 | }
11 |
--------------------------------------------------------------------------------
/lib/utils/utils_numeric.dart:
--------------------------------------------------------------------------------
1 | bool isNumeric(String s) {
2 | if (s == null) {
3 | return false;
4 | }
5 | return double.tryParse(s) != null;
6 | }
7 |
--------------------------------------------------------------------------------
/lib/views/layouts/base_scaffold.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class BaseScaffold extends Scaffold {
4 | BaseScaffold({
5 | Key key,
6 | bool resizeToAvoidBottomInset,
7 | Color backgroundColor,
8 | Widget body,
9 | }) : super(
10 | key: key,
11 | resizeToAvoidBottomInset: resizeToAvoidBottomInset,
12 | backgroundColor: backgroundColor,
13 | body: body,
14 | );
15 | }
16 |
--------------------------------------------------------------------------------
/lib/views/screens/app_page.dart:
--------------------------------------------------------------------------------
1 | // Page for single app, just like /app/ route on website.
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter/widgets.dart';
4 | import 'package:font_awesome_flutter/font_awesome_flutter.dart';
5 | import 'package:steamclient/common/predefined_colors.dart';
6 | import 'package:steamclient/views/layouts/base_scaffold.dart';
7 |
8 | class AppPage extends StatelessWidget {
9 | final String appId;
10 |
11 | AppPage(this.appId);
12 |
13 | Widget getHeadline(String text) {
14 | return Padding(
15 | padding: const EdgeInsets.symmetric(vertical: 8),
16 | child: Text(text, style: TextStyle(color: Colors.white, fontSize: 18)),
17 | );
18 | }
19 |
20 | @override
21 | Widget build(BuildContext context) {
22 | return BaseScaffold(
23 | resizeToAvoidBottomInset: true,
24 | backgroundColor: AppColors.ALMOST_BLACK,
25 | body: NestedScrollView(
26 | headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
27 | return [
28 | SliverAppBar(
29 | expandedHeight: 210,
30 | floating: true,
31 | snap: false,
32 | pinned: true,
33 | flexibleSpace: FlexibleSpaceBar(
34 | centerTitle: true,
35 | collapseMode: CollapseMode.pin,
36 | title: Text('',
37 | overflow: TextOverflow.ellipsis,
38 | style: TextStyle(color: Colors.white, fontSize: 16.0)),
39 | background: Stack(
40 | children: [
41 | Image.network(
42 | 'https://steamcdn-a.akamaihd.net/steam/apps/524220/capsule_616x353.jpg?t=1551189877',
43 | fit: BoxFit.cover),
44 | Container(
45 | decoration: BoxDecoration(
46 | color: Colors.white,
47 | borderRadius: BorderRadius.all(Radius.circular(3)),
48 | gradient: LinearGradient(
49 | begin: FractionalOffset.bottomCenter,
50 | end: FractionalOffset.topCenter,
51 | colors: [
52 | Colors.grey.withOpacity(0.0),
53 | Colors.black38,
54 | ],
55 | ),
56 | ),
57 | ),
58 | ],
59 | ),
60 | ),
61 | ),
62 | ];
63 | },
64 | body: SingleChildScrollView(
65 | padding: const EdgeInsets.symmetric(vertical: 6, horizontal: 18),
66 | physics: ClampingScrollPhysics(),
67 | child: Column(
68 | crossAxisAlignment: CrossAxisAlignment.start,
69 | mainAxisAlignment: MainAxisAlignment.start,
70 | children: [
71 | getHeadline('NieR:Automata™ Game of the YoRHa Edition'),
72 | // Pricing
73 | Flex(
74 | direction: Axis.horizontal,
75 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
76 | children: [
77 | Column(
78 | children: [
79 | Row(
80 | children: [
81 | Container(
82 | padding: const EdgeInsets.symmetric(
83 | horizontal: 15, vertical: 8),
84 | color: AppColors.PEA_GREEN,
85 | child: Text('-50%'),
86 | ),
87 | Container(
88 | padding: const EdgeInsets.symmetric(
89 | horizontal: 15, vertical: 6),
90 | color: AppColors.DARK_GREY_BLUE,
91 | child: Column(
92 | children: [
93 | Text('300.000₫',
94 | style: TextStyle(
95 | color: AppColors.POWDER_BLUE,
96 | fontSize: 8,
97 | decoration:
98 | TextDecoration.lineThrough)),
99 | Text('150.000₫',
100 | style: TextStyle(
101 | fontSize: 10,
102 | color: AppColors.POWDER_BLUE))
103 | ],
104 | ),
105 | )
106 | ],
107 | ),
108 | ],
109 | ),
110 | Column(
111 | children: [
112 | Padding(padding: const EdgeInsets.all(9)),
113 | ElevatedButton(
114 | onPressed: () {
115 | print('Pressed');
116 | },
117 | style: ElevatedButton.styleFrom(
118 | primary: AppColors.DIRTY_GREEN,
119 | ),
120 | child: Text('Add To Cart',
121 | style: TextStyle(color: Colors.white)),
122 | ),
123 | // Platforms.
124 | Padding(padding: const EdgeInsets.all(2)),
125 | Row(
126 | children: [
127 | Icon(
128 | FontAwesomeIcons.windows,
129 | color: Colors.white,
130 | size: 14,
131 | ),
132 | Padding(
133 | padding:
134 | const EdgeInsets.symmetric(horizontal: 2)),
135 | Icon(FontAwesomeIcons.apple,
136 | color: Colors.white, size: 14),
137 | Padding(
138 | padding:
139 | const EdgeInsets.symmetric(horizontal: 2)),
140 | Icon(FontAwesomeIcons.linux,
141 | color: Colors.white, size: 14)
142 | ],
143 | )
144 | ],
145 | ),
146 | ],
147 | ),
148 | // Metadata
149 | Flex(
150 | direction: Axis.horizontal,
151 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
152 | children: [
153 | Column(
154 | crossAxisAlignment: CrossAxisAlignment.start,
155 | children: [
156 | Text('Recent Reviews',
157 | style: TextStyle(color: Colors.white, height: 3)),
158 | Text('62% - Mixed',
159 | style: TextStyle(color: AppColors.FAWN)),
160 | ],
161 | ),
162 | Column(
163 | crossAxisAlignment: CrossAxisAlignment.end,
164 | children: [
165 | Text('Developer',
166 | style: TextStyle(color: Colors.white, height: 3)),
167 | Text('PlatinumGames',
168 | style: TextStyle(color: AppColors.POWDER_BLUE)),
169 | ],
170 | )
171 | ],
172 | ),
173 | Flex(
174 | direction: Axis.horizontal,
175 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
176 | children: [
177 | Column(
178 | crossAxisAlignment: CrossAxisAlignment.start,
179 | children: [
180 | Text('All Reviews',
181 | style: TextStyle(color: Colors.white, height: 3)),
182 | Text('78% - Mostly Positive',
183 | style: TextStyle(color: AppColors.PEA_GREEN)),
184 | ],
185 | ),
186 | Column(
187 | crossAxisAlignment: CrossAxisAlignment.end,
188 | children: [
189 | Text('Publisher',
190 | style: TextStyle(color: Colors.white, height: 3)),
191 | Text('Square Enix',
192 | style: TextStyle(color: AppColors.POWDER_BLUE)),
193 | ],
194 | )
195 | ],
196 | ),
197 | getHeadline('About the game'),
198 | Text(
199 | "NieR: Automata tells the story of androids 2B, 9S and A2 and their battle to reclaim the machine-driven dystopia overrun by powerful machines. Humanity has been driven from the Earth by mechanical beings from another world. In a final effort to take back the planet, the human resistance sends a force of android soldiers to destroy the invaders. Now, a war between machines and androids rages on... A war that could soon unveil a long-forgotten truth of the world.",
200 | style: TextStyle(color: Colors.white, fontSize: 12)),
201 | Padding(padding: const EdgeInsets.symmetric(vertical: 8)),
202 | Image.network(
203 | 'https://steamcdn-a.akamaihd.net/steam/apps/524220/extras/Nier-GOTY-Steam-EN.jpg?t=1562596376')
204 | ],
205 | ),
206 | ),
207 | ),
208 | );
209 | }
210 | }
211 |
--------------------------------------------------------------------------------
/lib/views/screens/chat.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/gestures.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:steamclient/common/predefined_colors.dart';
4 | import 'package:steamclient/views/widgets/chat/input_area.dart';
5 |
6 | enum ItemEnums { startVoiceChat, viewProfile }
7 |
8 | class Chat extends StatelessWidget {
9 | final List messages = [
10 | 'Chat 1 🤣',
11 | 'Chat 2 🤣',
12 | 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.',
13 | 'Chat 4',
14 | 'Chat 5',
15 | 'Chat 6',
16 | 'Chat 7',
17 | 'Chat 8',
18 | 'Chat 9',
19 | 'Chat 10',
20 | 'Chat 11 🥵',
21 | 'Chat 12 🥵🥵',
22 | 'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
23 | 'Chat 14',
24 | 'Chat 15',
25 | ];
26 |
27 | final ava =
28 | 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/df/dfce4a6e90f0379a0f623b5003c1da6dd1bb07f0_full.jpg';
29 |
30 | final GlobalKey btnKey = GlobalKey();
31 |
32 | Widget leftText(String content, double maxWidth) {
33 | return Row(
34 | crossAxisAlignment: CrossAxisAlignment.end,
35 | children: [
36 | PopupMenuButton(
37 | color: AppColors.DARK_BLUE_GREY,
38 | offset: Offset(6, 6),
39 | child: ClipOval(
40 | child: Image.network(
41 | ava,
42 | width: 24,
43 | height: 24,
44 | fit: BoxFit.cover,
45 | ),
46 | ),
47 | onSelected: (ItemEnums result) {},
48 | itemBuilder: (BuildContext context) => >[
49 | const PopupMenuItem(
50 | value: ItemEnums.startVoiceChat,
51 | child: Text('Start voice chat',
52 | style: TextStyle(color: Colors.white)),
53 | ),
54 | const PopupMenuItem(
55 | value: ItemEnums.viewProfile,
56 | child:
57 | Text('View Profile', style: TextStyle(color: Colors.white)),
58 | ),
59 | ],
60 | ),
61 | Padding(padding: const EdgeInsets.only(right: 12)),
62 | ConstrainedBox(
63 | child: DecoratedBox(
64 | child: Padding(
65 | padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
66 | child: Text(
67 | content,
68 | textAlign: TextAlign.start,
69 | style: TextStyle(color: AppColors.POWDER_BLUE),
70 | ),
71 | ),
72 | decoration: BoxDecoration(
73 | color: AppColors.DARK_BLUE_GREY,
74 | borderRadius: BorderRadius.only(
75 | topLeft: Radius.circular(6),
76 | topRight: Radius.circular(6),
77 | bottomRight: Radius.circular(6)),
78 | border: Border.all(color: AppColors.DARK_BLUE_GREY, width: 2),
79 | ),
80 | ),
81 | constraints: BoxConstraints(
82 | minHeight: 5.0,
83 | minWidth: 5.0,
84 | maxWidth: maxWidth,
85 | ),
86 | ),
87 | ],
88 | );
89 | }
90 |
91 | Widget rightText(String content, double maxWidth) {
92 | return GestureDetector(
93 | onLongPress: () {
94 | print('Ended');
95 | },
96 | child: ConstrainedBox(
97 | child: DecoratedBox(
98 | child: Padding(
99 | padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
100 | child: Text(
101 | content,
102 | textAlign: TextAlign.start,
103 | style: TextStyle(color: AppColors.POWDER_BLUE),
104 | ),
105 | ),
106 | decoration: BoxDecoration(
107 | color: AppColors.GUNMETAL,
108 | borderRadius: BorderRadius.only(
109 | topLeft: Radius.circular(6),
110 | topRight: Radius.circular(6),
111 | bottomLeft: Radius.circular(6)),
112 | border: Border.all(color: AppColors.GUNMETAL, width: 2))),
113 | constraints: BoxConstraints(
114 | minHeight: 5.0,
115 | minWidth: 5.0,
116 | maxWidth: maxWidth,
117 | ),
118 | ),
119 | );
120 | }
121 |
122 | @override
123 | Widget build(BuildContext context) {
124 | return Scaffold(
125 | backgroundColor: AppColors.ALMOST_BLACK,
126 | appBar: AppBar(
127 | elevation: 0,
128 | backgroundColor: AppColors.ALMOST_BLACK,
129 | actions: [
130 | IconButton(
131 | tooltip: 'View Profile',
132 | icon: Icon(Icons.person),
133 | onPressed: () {},
134 | ),
135 | IconButton(
136 | tooltip: 'Add into Group Chat',
137 | icon: Icon(Icons.person_add),
138 | onPressed: () {},
139 | ),
140 | ],
141 | title: Flex(
142 | direction: Axis.horizontal,
143 | children: [
144 | Image.network(
145 | ava,
146 | width: 38,
147 | height: 38,
148 | ),
149 | Padding(
150 | padding: const EdgeInsets.symmetric(horizontal: 4),
151 | ),
152 | Column(
153 | crossAxisAlignment: CrossAxisAlignment.start,
154 | children: [
155 | Text(
156 | 'Scientific Witchery',
157 | style: TextStyle(
158 | color: AppColors.ELECTRIC_LIME,
159 | fontSize: 15,
160 | fontWeight: FontWeight.bold,
161 | ),
162 | ),
163 | Text(
164 | 'Dota 2: Ranked',
165 | style: TextStyle(
166 | color: AppColors.VERY_PALE_GREEN,
167 | fontSize: 13,
168 | ),
169 | ),
170 | ],
171 | ),
172 | ],
173 | ),
174 | ),
175 | body: Flex(
176 | direction: Axis.vertical,
177 | children: [
178 | Flexible(
179 | child: GestureDetector(
180 | behavior: HitTestBehavior.opaque,
181 | onPanDown: (_) {
182 | FocusScope.of(context).requestFocus(FocusNode());
183 | },
184 | child: ListView.builder(
185 | reverse: true,
186 | itemCount: messages.length,
187 | padding:
188 | const EdgeInsets.symmetric(horizontal: 14, vertical: 12),
189 | itemBuilder: (BuildContext context, int index) {
190 | var item = this.messages[index];
191 | var maxWidth = MediaQuery.of(context).size.width * 0.7;
192 | var isSelf = index % 2 == 0 && index < 6;
193 | return Align(
194 | alignment:
195 | !isSelf ? Alignment.centerLeft : Alignment.centerRight,
196 | child: Column(
197 | children: [
198 | Padding(
199 | padding: const EdgeInsets.symmetric(vertical: 4)),
200 | isSelf
201 | ? rightText(item, maxWidth)
202 | : leftText(item, maxWidth),
203 | ],
204 | ),
205 | );
206 | },
207 | ),
208 | ),
209 | ),
210 | InputArea()
211 | ],
212 | ),
213 | );
214 | }
215 | }
216 |
--------------------------------------------------------------------------------
/lib/views/screens/chat_threads.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:steamclient/common/predefined_colors.dart';
3 | import 'package:steamclient/models/user.dart';
4 |
5 | const sampleData = [
6 | {
7 | 'name': 'commanderhigsby',
8 | 'online': true,
9 | 'playing': 'Age of Empires II: Definitive Edition',
10 | },
11 | {
12 | 'name': 'Masanori',
13 | 'online': true,
14 | 'playing': 'Oxygen Not Included',
15 | },
16 | {
17 | 'name': 'Wrath (Sin)',
18 | 'online': true,
19 | 'playing': 'Metal Gear Rising: Revengeance',
20 | },
21 | {
22 | 'name': 'Galflame',
23 | 'online': true,
24 | 'playing': 'Dota 2',
25 | },
26 | {
27 | 'name': 'Rush',
28 | 'online': true,
29 | },
30 | {
31 | 'name': 'mitooil',
32 | 'online': true,
33 | },
34 | {
35 | 'name': 'AlexDriver',
36 | 'online': false,
37 | },
38 | {
39 | 'name': 'Kenji',
40 | 'online': false,
41 | },
42 | {
43 | 'name': 'Nguyen Pham',
44 | 'online': false,
45 | },
46 | {
47 | 'name': 'Aiden',
48 | 'online': false,
49 | },
50 | {
51 | 'name': 'Jim Gordon',
52 | 'online': false,
53 | },
54 | {
55 | 'name': 'Phoenix',
56 | 'online': false,
57 | },
58 | ];
59 |
60 | class ChatThreads extends StatelessWidget {
61 | List generateData() {
62 | var u1 = new User();
63 | u1.avatar =
64 | 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/90/904720d717c77332073449c522ea87304399797c_full.jpg';
65 | u1.username = 'F=14B';
66 | u1.playing = 'DCS World Steam';
67 |
68 | var u2 = new User();
69 | u2.avatar =
70 | 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/19/19becb81fd681a89fc321ccc535bb21ad5c1d806_full.jpg';
71 | u2.username = 'Intel';
72 | u2.playing = 'World of Warships';
73 |
74 | var u3 = new User();
75 | u3.avatar =
76 | 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/d9/d9f3ca9ba12a2d140fb00a4c25fe01acc5fe0402_full.jpg';
77 | u3.username = '夢夢';
78 | u3.playing = 'Half-life 2';
79 |
80 | var u4 = new User();
81 | u4.avatar =
82 | 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/df/dfce4a6e90f0379a0f623b5003c1da6dd1bb07f0_full.jpg';
83 | u4.username = 'Scientific Witchery';
84 | u4.playing = '';
85 |
86 | List resp = [];
87 | resp.add(u1);
88 | resp.add(u2);
89 | resp.add(u3);
90 | resp.add(u4);
91 | return resp;
92 | }
93 |
94 | @override
95 | Widget build(BuildContext context) {
96 | var list = generateData();
97 | return Container(
98 | color: AppColors.ALMOST_BLACK,
99 | child: ListView.builder(
100 | itemCount: list.length,
101 | itemBuilder: (BuildContext ctxt, int index) {
102 | var item = list[index];
103 | return Material(
104 | color: Colors.transparent,
105 | child: InkWell(
106 | onTap: () {
107 | Navigator.pushNamed(context, 'Chat');
108 | },
109 | splashColor: AppColors.DARK_BLUE,
110 | child: Container(
111 | padding:
112 | const EdgeInsets.symmetric(vertical: 10, horizontal: 14),
113 | decoration: BoxDecoration(
114 | border: Border(
115 | bottom: BorderSide(
116 | color: AppColors.DARK_BLUE_GREY,
117 | width: 1,
118 | ),
119 | ),
120 | ),
121 | height: 68,
122 | child: Flex(
123 | mainAxisSize: MainAxisSize.max,
124 | direction: Axis.horizontal,
125 | crossAxisAlignment: CrossAxisAlignment.center,
126 | children: [
127 | Container(
128 | margin: const EdgeInsets.only(right: 16),
129 | decoration: BoxDecoration(
130 | border: Border(
131 | right: BorderSide(
132 | color: item.playing == ''
133 | ? AppColors.LIGHT_BLUE
134 | : AppColors.ELECTRIC_LIME,
135 | width: 3,
136 | ),
137 | ),
138 | ),
139 | child: Image.network(list[index].avatar),
140 | ),
141 | Flexible(
142 | fit: FlexFit.tight,
143 | child: Column(
144 | crossAxisAlignment: CrossAxisAlignment.start,
145 | children: [
146 | Text(
147 | item.username,
148 | style: TextStyle(
149 | color: item.playing == ''
150 | ? AppColors.LIGHT_BLUE
151 | : AppColors.VERY_PALE_GREEN,
152 | fontSize: 16,
153 | ),
154 | ),
155 | Text(
156 | item.playing != '' ? item.playing : 'Online',
157 | style: TextStyle(
158 | color: item.playing != ''
159 | ? AppColors.ELECTRIC_LIME
160 | : AppColors.LIGHT_BLUE,
161 | ),
162 | ),
163 | ],
164 | ),
165 | ),
166 | Text(
167 | '02/01/2020',
168 | style:
169 | TextStyle(color: AppColors.POWDER_BLUE, fontSize: 12),
170 | ),
171 | ],
172 | ),
173 | ),
174 | ),
175 | );
176 | },
177 | ),
178 | );
179 | }
180 | }
181 |
--------------------------------------------------------------------------------
/lib/views/screens/duo_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:steamclient/main.dart';
3 |
4 | class DuoPage extends StatelessWidget {
5 | void _updateDualScreenInfo() async {
6 | final bool isDual = await platform.invokeMethod('isDualScreenDevice');
7 | final bool isSpanned = await platform.invokeMethod('isAppSpanned');
8 | final double hingeAngle = await platform.invokeMethod('getHingeAngle');
9 |
10 | print('isDualScreenDevice : $isDual');
11 | print('isAppSpanned : $isSpanned');
12 | print('hingeAngle : $hingeAngle');
13 | }
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | _updateDualScreenInfo();
18 | return Container(
19 |
20 | );
21 | }
22 | }
--------------------------------------------------------------------------------
/lib/views/screens/login.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart';
3 | import 'package:steamclient/common/predefined_colors.dart';
4 | import 'package:steamclient/views/widgets/auth/custom_input.dart';
5 |
6 | class LoginScreen extends StatelessWidget {
7 | @override
8 | Widget build(BuildContext context) {
9 | return Scaffold(
10 | resizeToAvoidBottomInset: true,
11 | body: Container(
12 | width: double.infinity,
13 | height: double.infinity,
14 | color: AppColors.TUNGSTEN,
15 | padding: const EdgeInsets.only(top: 42),
16 | child: SingleChildScrollView(
17 | child: Column(
18 | children: [
19 | Container(
20 | margin: const EdgeInsets.fromLTRB(30, 46, 30, 38),
21 | child: Icon(
22 | FontAwesomeIcons.steam,
23 | color: AppColors.WHITE,
24 | size: 160,
25 | ),
26 | ),
27 | Text(
28 | "STEAM",
29 | style: TextStyle(
30 | fontSize: 32,
31 | fontWeight: FontWeight.bold,
32 | color: AppColors.WHITE,
33 | ),
34 | ),
35 | Text(
36 | "Mobile",
37 | style: TextStyle(
38 | fontSize: 26,
39 | color: AppColors.ALUMINIUM,
40 | ),
41 | ),
42 | SizedBox(height: 46),
43 | Padding(
44 | padding: const EdgeInsets.symmetric(
45 | horizontal: 20,
46 | ),
47 | child: Column(
48 | children: [
49 | CustomInput(hint: "Username"),
50 | SizedBox(height: 15),
51 | CustomInput(hint: "Password"),
52 | ],
53 | ),
54 | ),
55 | SizedBox(height: 20),
56 | InkWell(
57 | child: Container(
58 | height: 52,
59 | width: double.infinity,
60 | child: Text(
61 | "LOG IN",
62 | style: TextStyle(
63 | fontSize: 16,
64 | fontWeight: FontWeight.bold,
65 | color: AppColors.WHITE,
66 | ),
67 | ),
68 | alignment: Alignment.center,
69 | margin: const EdgeInsets.symmetric(
70 | horizontal: 22,
71 | ),
72 | decoration: BoxDecoration(
73 | color: AppColors.BLUE,
74 | borderRadius: BorderRadius.all(Radius.circular(8)),
75 | ),
76 | ),
77 | ),
78 | SizedBox(height: 10),
79 | TextButton(
80 | onPressed: () {},
81 | child: Text(
82 | "Forgot Password?",
83 | style: TextStyle(color: AppColors.BLUE),
84 | )),
85 | ],
86 | ),
87 | ),
88 | ),
89 | );
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/lib/views/screens/market.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:fluentui_system_icons/fluentui_system_icons.dart';
3 | import 'package:steamclient/common/predefined_colors.dart';
4 | import 'package:steamclient/views/widgets/appbar/steam_appbar.dart';
5 | import 'package:steamclient/views/widgets/market/market_item.dart';
6 | import 'package:steamclient/views/widgets/market/top_item.dart';
7 |
8 | const sampleData = [
9 | {
10 | 'name': 'Transversant Soul',
11 | 'game': 'Dota 2',
12 | 'asset': 'transversant_soul.png',
13 | 'price': 3.99
14 | },
15 | {
16 | 'name': 'Man Co. Supply Key',
17 | 'game': 'Team Fortress 2',
18 | 'asset': 'supply_key.png',
19 | 'price': 2.99
20 | },
21 | {
22 | 'name': 'Staff of Divine Ascension',
23 | 'game': 'Dota 2',
24 | 'asset': 'staff_of_divine_ascension.png',
25 | 'price': 23.99
26 | },
27 | {
28 | 'name': 'Halloween Chest',
29 | 'game': 'Counter Strike: Global Offensive',
30 | 'asset': 'halloween_chest.png',
31 | 'price': 23.99
32 | },
33 | {
34 | 'name': 'Fracture Case',
35 | 'game': 'Counter Strike: Global Offensive',
36 | 'asset': 'fracture_case.png',
37 | 'price': 23.99
38 | },
39 | ];
40 |
41 | class SteamMarket extends StatelessWidget {
42 | @override
43 | Widget build(BuildContext context) {
44 | var list = new List.generate(20, (i) => i + 1);
45 | var displayList = [];
46 | list.forEach((element) {
47 | displayList.addAll(sampleData);
48 | });
49 |
50 | return Scaffold(
51 | backgroundColor: AppColors.DARK,
52 | appBar: SteamAppBar(
53 | titleText: 'Market',
54 | actions: [
55 | IconButton(
56 | tooltip: 'Filter',
57 | icon: Icon(
58 | FluentIcons.filter_28_filled,
59 | color: AppColors.SECONDARY_TEXT,
60 | ),
61 | onPressed: () {},
62 | ),
63 | IconButton(
64 | tooltip: 'Search',
65 | icon: Icon(
66 | FluentIcons.search_28_filled,
67 | color: AppColors.SECONDARY_TEXT,
68 | ),
69 | onPressed: () {},
70 | ),
71 | ],
72 | ),
73 | body: Container(
74 | padding: const EdgeInsets.fromLTRB(0, 18, 0, 0),
75 | margin: const EdgeInsets.symmetric(horizontal: 16),
76 | child: ListView.builder(
77 | itemCount: displayList.length,
78 | itemBuilder: (context, index) {
79 | var e = displayList[index];
80 | if (index == 0) {
81 | return TopItem(
82 | icon: Icon(
83 | FluentIcons.apps_28_regular,
84 | color: AppColors.SECONDARY_TEXT,
85 | ),
86 | text: 'My inventory',
87 | );
88 | }
89 | if (index == 1) {
90 | return TopItem(
91 | icon: Icon(
92 | FluentIcons.collections_24_filled,
93 | color: AppColors.SECONDARY_TEXT,
94 | ),
95 | text: 'Confirmations',
96 | );
97 | }
98 | if (index == 2) {
99 | return Container(
100 | margin: const EdgeInsets.only(bottom: 20, top: 10),
101 | child: Row(
102 | children: [
103 | Text(
104 | 'Popular',
105 | style: TextStyle(
106 | color: AppColors.SECONDARY_TEXT, fontSize: 17),
107 | ),
108 | Icon(
109 | FluentIcons.chevron_down_20_filled,
110 | color: AppColors.SECONDARY_TEXT,
111 | ),
112 | ],
113 | ),
114 | );
115 | }
116 | return MarketItem(
117 | title: e['name'],
118 | game: e['game'],
119 | price: e['price'],
120 | assetName: e['asset'],
121 | );
122 | },
123 | ),
124 | ),
125 | );
126 | }
127 | }
128 |
--------------------------------------------------------------------------------
/lib/views/screens/playground.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter/widgets.dart';
3 | import 'package:intl/intl.dart';
4 | import 'package:intl/date_symbol_data_local.dart';
5 |
6 | class Playground extends StatefulWidget {
7 | @override
8 | _PlaygroundState createState() {
9 | return _PlaygroundState();
10 | }
11 | }
12 |
13 | class _PlaygroundState extends State
14 | with SingleTickerProviderStateMixin {
15 | @override
16 | void initState() {
17 | super.initState();
18 |
19 | initializeDateFormatting();
20 |
21 | print(DateFormat('EEEEE', 'id').format(DateTime.now()));
22 | }
23 |
24 | @override
25 | Widget build(BuildContext context) {
26 | return Scaffold(
27 | extendBody: false,
28 | body: Column(
29 | crossAxisAlignment: CrossAxisAlignment.center,
30 | mainAxisAlignment: MainAxisAlignment.center,
31 | children: [
32 | Container(
33 | width: 400,
34 | height: 400,
35 | alignment: Alignment.center,
36 | padding: const EdgeInsets.all(6),
37 | color: Colors.white,
38 | ),
39 | ElevatedButton(child: Text('Redraw'), onPressed: () {})
40 | ],
41 | ),
42 | );
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/lib/views/screens/profile.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:steamclient/views/widgets/profile/online_friends.dart';
3 | import 'package:steamclient/views/widgets/profile/recently_played_games.dart';
4 | import 'package:steamclient/views/widgets/profile/statistic_row.dart';
5 | import 'package:steamclient/common/predefined_colors.dart';
6 | import '../widgets/profile/profile_main.dart';
7 |
8 | class ProfileWidgetState extends State {
9 | @override
10 | Widget build(BuildContext context) {
11 | return Container(
12 | color: AppColors.DARK,
13 | child: SingleChildScrollView(
14 | child: Flex(
15 | direction: Axis.vertical,
16 | children: [
17 | ProfileMain(),
18 | StatisticRow(),
19 | OnlineFriends(),
20 | RecentlyPlayedGames(headline: 'Recently Played'),
21 | RecentlyPlayedGames(headline: 'Trending Games'),
22 | RecentlyPlayedGames(headline: 'Backlog Awaits')
23 | ],
24 | ),
25 | ),
26 | );
27 | }
28 | }
29 |
30 | class Profile extends StatefulWidget {
31 | @override
32 | ProfileWidgetState createState() => new ProfileWidgetState();
33 | }
34 |
--------------------------------------------------------------------------------
/lib/views/screens/steam_guard.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:fluentui_system_icons/fluentui_system_icons.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:percent_indicator/circular_percent_indicator.dart';
6 | import 'package:steamclient/common/predefined_colors.dart';
7 | import 'package:steamclient/views/widgets/appbar/steam_appbar.dart';
8 | import 'package:steamclient/views/widgets/market/top_item.dart';
9 |
10 | const text1 =
11 | 'Please note that current screen is just a mockup and not a real authenticator. Above code is not actually usable with your Steam account.';
12 |
13 | class _SteamGuardState extends State {
14 | double progress = 100.0;
15 |
16 | @override
17 | void initState() {
18 | super.initState();
19 | Timer.periodic(new Duration(seconds: 1), (timer) {
20 | setState(() {
21 | if (progress <= 0.0) {
22 | progress = 100.0;
23 | return;
24 | }
25 | progress = progress - 10.0;
26 | });
27 | });
28 | }
29 |
30 | @override
31 | Widget build(BuildContext context) {
32 | double optimalRadius = MediaQuery.of(context).size.width * (2 / 5);
33 |
34 | return Scaffold(
35 | appBar: SteamAppBar(
36 | titleText: 'Steam Guard',
37 | actions: [],
38 | ),
39 | body: Container(
40 | width: double.infinity,
41 | padding: EdgeInsets.symmetric(horizontal: 24, vertical: 16),
42 | color: AppColors.DARK,
43 | child: Column(
44 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
45 | children: [
46 | Expanded(
47 | child: CircularPercentIndicator(
48 | radius: optimalRadius,
49 | lineWidth: 8.0,
50 | animation: true,
51 | animateFromLastPercent: true,
52 | animationDuration: 400,
53 | startAngle: 0,
54 | percent: (progress / 100),
55 | center: new Text(
56 | "0:${(progress.toInt() / 100).toString().replaceAll('.', '').padLeft(2, '0')}",
57 | style: TextStyle(color: Colors.white, fontSize: 42),
58 | ),
59 | backgroundColor: AppColors.DARK_GREY_BLUE,
60 | circularStrokeCap: CircularStrokeCap.round,
61 | maskFilter: MaskFilter.blur(BlurStyle.solid, 3),
62 | linearGradient: LinearGradient(
63 | begin: Alignment.topCenter,
64 | end: Alignment.bottomCenter,
65 | colors: [Colors.orange, Colors.yellow],
66 | ),
67 | ),
68 | ),
69 | Container(
70 | margin: const EdgeInsets.symmetric(vertical: 12),
71 | child: Text(
72 | text1,
73 | style: TextStyle(color: AppColors.WHITE),
74 | ),
75 | ),
76 | Container(
77 | margin: const EdgeInsets.only(bottom: 16),
78 | alignment: Alignment.centerLeft,
79 | child: Text(
80 | 'Tip: Water is wet.',
81 | style: TextStyle(color: AppColors.BLUE),
82 | ),
83 | ),
84 | Column(
85 | children: [
86 | TopItem(
87 | icon: Icon(
88 | FluentIcons.calendar_cancel_24_regular,
89 | color: AppColors.SECONDARY_TEXT,
90 | ),
91 | text: 'Remove authenticator',
92 | ),
93 | TopItem(
94 | icon: Icon(
95 | FluentIcons.lock_24_regular,
96 | color: AppColors.SECONDARY_TEXT,
97 | ),
98 | text: 'My Recovery Code',
99 | ),
100 | TopItem(
101 | icon: Icon(
102 | FluentIcons.question_28_regular,
103 | color: AppColors.SECONDARY_TEXT,
104 | ),
105 | text: 'Help',
106 | ),
107 | ],
108 | ),
109 | ],
110 | ),
111 | ),
112 | );
113 | }
114 | }
115 |
116 | class SteamGuard extends StatefulWidget {
117 | @override
118 | _SteamGuardState createState() {
119 | return _SteamGuardState();
120 | }
121 | }
122 |
--------------------------------------------------------------------------------
/lib/views/screens/storefront_v2.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:steamclient/common/predefined_colors.dart';
3 | import 'package:fluentui_system_icons/fluentui_system_icons.dart';
4 | import 'package:steamclient/views/widgets/storefront/carousel/carousel_v2.dart';
5 | import 'package:steamclient/views/widgets/storefront/section_header.dart';
6 | import 'package:steamclient/views/widgets/storefront/section_onsale.dart';
7 | import 'package:steamclient/views/widgets/appbar/steam_appbar.dart';
8 |
9 | class StoreFrontV2 extends StatelessWidget {
10 | @override
11 | Widget build(BuildContext context) {
12 | return Scaffold(
13 | appBar: SteamAppBar(
14 | titleText: 'Store',
15 | actions: [
16 | IconButton(
17 | tooltip: 'Main Store',
18 | icon: Icon(
19 | FluentIcons.apps_28_regular,
20 | color: AppColors.SECONDARY_TEXT,
21 | ),
22 | onPressed: () {},
23 | ),
24 | IconButton(
25 | tooltip: 'Search',
26 | icon: Icon(
27 | FluentIcons.search_28_filled,
28 | color: AppColors.SECONDARY_TEXT,
29 | ),
30 | onPressed: () {},
31 | ),
32 | IconButton(
33 | tooltip: 'Cart',
34 | icon: Icon(
35 | FluentIcons.cart_24_regular,
36 | color: AppColors.SECONDARY_TEXT,
37 | ),
38 | onPressed: () {},
39 | ),
40 | ],
41 | ),
42 | body: Container(
43 | decoration: BoxDecoration(color: AppColors.DARK),
44 | child: SingleChildScrollView(
45 | primary: true,
46 | child: Column(
47 | children: [
48 | Carousel(),
49 | SectionHeader('Featured & Recommended'),
50 | SectionOnsale(''),
51 | SectionHeader('Special Offers'),
52 | SectionOnsale('')
53 | ],
54 | ),
55 | ),
56 | ),
57 | );
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/lib/views/tab_layout.dart:
--------------------------------------------------------------------------------
1 | // This is actually a wrapper for another 5 screens: Guard, Profile, Store, Chat, Account
2 | // It should have its own navigator.
3 | import 'package:flutter/material.dart';
4 | import 'package:font_awesome_flutter/font_awesome_flutter.dart';
5 | import 'package:provider/provider.dart';
6 | import 'package:steamclient/common/predefined_colors.dart';
7 | import 'package:steamclient/enums/viewstate.dart';
8 | import 'package:steamclient/views/screens/chat_threads.dart';
9 | import 'package:steamclient/views/screens/market.dart';
10 | import 'package:steamclient/views/screens/steam_guard.dart';
11 | import 'package:steamclient/views/screens/storefront_v2.dart';
12 | import 'package:steamclient/vms/auth_vm.dart';
13 |
14 | class _TabLayoutState extends State
15 | with TickerProviderStateMixin {
16 | int _currentTabIndex = 2;
17 | final _kTabPages = [
18 | SteamGuard(),
19 | SteamMarket(),
20 | StoreFrontV2(),
21 | ChatThreads()
22 | ];
23 |
24 | @override
25 | Widget build(BuildContext context) {
26 | final authState = Provider.of(context).state;
27 |
28 | return Scaffold(
29 | body: IndexedStack(
30 | index: _currentTabIndex,
31 | children: _kTabPages,
32 | ),
33 | bottomNavigationBar: BottomNavigationBar(
34 | currentIndex: _currentTabIndex,
35 | backgroundColor: AppColors.CHARCOAL_GREY,
36 | selectedItemColor: Colors.white,
37 | unselectedItemColor: Colors.white30,
38 | type: BottomNavigationBarType.fixed,
39 | onTap: (index) {
40 | if (index == 4) {
41 | if (authState == AuthState.Authenticated) {
42 | return print('Authenticated!!');
43 | }
44 | Navigator.pushNamed(context, 'Login');
45 | return;
46 | }
47 | setState(() {
48 | _currentTabIndex = index;
49 | });
50 | },
51 | items: [
52 | BottomNavigationBarItem(
53 | icon: Icon(FontAwesomeIcons.shieldAlt),
54 | label: 'Guard',
55 | ),
56 | BottomNavigationBarItem(
57 | icon: Icon(Icons.shopping_cart_outlined),
58 | label: 'Market',
59 | ),
60 | BottomNavigationBarItem(
61 | icon: Icon(Icons.shopping_cart),
62 | label: 'Store',
63 | ),
64 | BottomNavigationBarItem(
65 | icon: Icon(Icons.message),
66 | label: 'Chat',
67 | ),
68 | BottomNavigationBarItem(
69 | icon: Icon(Icons.library_books),
70 | label: 'Library',
71 | ),
72 | ],
73 | ),
74 | );
75 | }
76 | }
77 |
78 | class SteamTablayout extends StatefulWidget {
79 | @override
80 | _TabLayoutState createState() {
81 | return _TabLayoutState();
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/lib/views/widgets/appbar/steam_appbar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:steamclient/common/predefined_colors.dart';
3 |
4 | class SteamAppBar extends PreferredSize {
5 | final String titleText;
6 | final List actions;
7 |
8 | static const appBarHeight = 56.0;
9 |
10 | SteamAppBar({
11 | Key key,
12 | Widget title,
13 | @required this.titleText,
14 | @required this.actions,
15 | }) : super(
16 | key: key,
17 | preferredSize: Size.fromHeight(appBarHeight),
18 | child: AppBar(
19 | elevation: 0,
20 | title: Text(
21 | titleText,
22 | style: TextStyle(fontSize: 26, fontWeight: FontWeight.bold),
23 | ),
24 | actions: actions,
25 | backgroundColor: AppColors.CHARCOAL_GREY,
26 | centerTitle: false,
27 | ),
28 | );
29 |
30 | @override
31 | Size get preferredSize => Size.fromHeight(appBarHeight);
32 | }
33 |
--------------------------------------------------------------------------------
/lib/views/widgets/auth/custom_input.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:steamclient/common/predefined_colors.dart';
3 |
4 | class CustomInput extends StatelessWidget {
5 | final String hint;
6 |
7 | CustomInput({this.hint});
8 |
9 | @override
10 | Widget build(BuildContext context) {
11 | return Container(
12 | padding: const EdgeInsets.all(2),
13 | child: TextField(
14 | style: TextStyle(
15 | color: AppColors.WHITE,
16 | fontSize: 14,
17 | ),
18 | decoration: InputDecoration(
19 | focusColor: AppColors.DIRTY_GREEN,
20 | focusedBorder: OutlineInputBorder(
21 | borderRadius: BorderRadius.all(Radius.circular(8)),
22 | borderSide: BorderSide(
23 | color: AppColors.BLUE,
24 | width: 1.5,
25 | ),
26 | ),
27 | enabledBorder: OutlineInputBorder(
28 | borderRadius: BorderRadius.all(Radius.circular(8)),
29 | borderSide: BorderSide(
30 | color: AppColors.SLATE_GREY,
31 | width: 1.5,
32 | ),
33 | ),
34 | hintText: hint,
35 | hintStyle: TextStyle(color: AppColors.GUNMETAL_LIGHT),
36 | ),
37 | ),
38 | );
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/lib/views/widgets/boardview/board_item_object.dart:
--------------------------------------------------------------------------------
1 | class BoardItemObject {
2 | String title;
3 |
4 | BoardItemObject({this.title}) {
5 | if (this.title == null) {
6 | this.title = "";
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/lib/views/widgets/boardview/board_list_object.dart:
--------------------------------------------------------------------------------
1 | import 'board_item_object.dart';
2 |
3 | class BoardListObject {
4 | String title;
5 | List items;
6 |
7 | BoardListObject({this.title, this.items}) {
8 | if (this.title == null) {
9 | this.title = "";
10 | }
11 | if (this.items == null) {
12 | this.items = [];
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/lib/views/widgets/chat/input_area.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter/services.dart';
3 | import 'package:steamclient/common/predefined_colors.dart';
4 |
5 | class InputArea extends StatelessWidget {
6 | @override
7 | Widget build(BuildContext context) {
8 | return Container(
9 | height: 48,
10 | decoration: BoxDecoration(
11 | color: AppColors.ALMOST_BLACK,
12 | border: Border(
13 | top: BorderSide(color: AppColors.DARK_GREY_BLUE, width: 0.5))),
14 | child: Row(
15 | mainAxisAlignment: MainAxisAlignment.spaceEvenly,
16 | children: [
17 | IconButton(
18 | icon: Icon(Icons.image, color: Colors.white),
19 | onPressed: () {
20 | print('Pick');
21 | }),
22 | Flexible(
23 | child: Container(
24 | color: AppColors.DARK_GREY_BLUE,
25 | margin: EdgeInsets.symmetric(vertical: 6),
26 | child: TextField(
27 | style: TextStyle(color: Colors.white),
28 | autocorrect: false,
29 | inputFormatters: [LengthLimitingTextInputFormatter(40)],
30 | decoration: InputDecoration(
31 | counterText: '',
32 | contentPadding: const EdgeInsets.only(bottom: 15, left: 6)),
33 | ),
34 | )),
35 | IconButton(
36 | icon: Icon(Icons.send, color: AppColors.METALLIC_BLUE),
37 | onPressed: () {
38 | print('Send');
39 | }),
40 | ],
41 | ));
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/lib/views/widgets/drawer/custom_drawer.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:steamclient/views/widgets/drawer/drawer_expansion_widget.dart';
3 | import 'package:steamclient/views/widgets/hex_color.dart';
4 |
5 | class CustomDrawer extends StatelessWidget {
6 | CustomDrawer({Key key}) : super(key: key);
7 | static String avatarLink =
8 | "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/f6/f6efaf9edc241ab175714964792226cb217b5126_full.jpg";
9 |
10 | final List drawerItems = [
11 | new DrawerExpansionWidget('Notifications', [
12 | 'New Comments',
13 | 'New Iiems',
14 | 'New invites',
15 | 'New gifts',
16 | 'New messages'
17 | ]),
18 | new DrawerExpansionWidget('Store',
19 | ['Featured', 'Explore', 'Curators', 'Wishlist', 'News', 'Stats']),
20 | new DrawerExpansionWidget('Community',
21 | ['Home', 'Discussions', 'Workshop', 'Chat', 'Market', 'Broadcasts']),
22 | new DrawerExpansionWidget('You & Friends', [
23 | 'Activity',
24 | 'Games',
25 | 'Profile',
26 | 'Friends',
27 | 'Groups',
28 | 'Content',
29 | 'Badges',
30 | 'Inventory',
31 | 'Reviews'
32 | ]),
33 | // new DrawerExpansionItem('Support', [])
34 | ];
35 |
36 | @override
37 | Widget build(BuildContext context) {
38 | return Container(
39 | decoration: BoxDecoration(color: HexColor('171A21')),
40 | child: new SingleChildScrollView(
41 | scrollDirection: Axis.vertical,
42 | child: Column(
43 | crossAxisAlignment: CrossAxisAlignment.start,
44 | children: [
45 | // Avatar and user nickname
46 | new Padding(
47 | padding: const EdgeInsets.only(top: 38, left: 24),
48 | child: new Row(
49 | children: [
50 | ClipRRect(
51 | borderRadius: BorderRadius.circular(4),
52 | child: GestureDetector(
53 | onTap: () => {},
54 | child: Image.network(avatarLink, width: 40, height: 40),
55 | ),
56 | ),
57 | Padding(
58 | padding: const EdgeInsets.only(left: 20),
59 | ),
60 | Text(
61 | 'Doko',
62 | style:
63 | TextStyle(color: HexColor('#898989'), fontSize: 24),
64 | ),
65 | ],
66 | )),
67 | new Padding(
68 | padding: const EdgeInsets.only(left: 20, top: 22),
69 | child: new Text(
70 | 'Wallet: 24',
71 | style: TextStyle(
72 | fontSize: 20,
73 | color: HexColor('#898989'),
74 | ),
75 | ),
76 | ),
77 | new Padding(
78 | padding: const EdgeInsets.all(14),
79 | ),
80 | new Column(children: drawerItems),
81 | ],
82 | ),
83 | ),
84 | );
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/lib/views/widgets/drawer/drawer_expansion_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:steamclient/utils/utils_colors.dart';
3 | import 'package:steamclient/views/widgets/hex_color.dart';
4 |
5 | class DrawerExpansionWidgetState extends State {
6 | String _name = '';
7 | List _subItems = [];
8 |
9 | DrawerExpansionWidgetState(this._name, this._subItems);
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | List subItemsWidgets = _subItems
14 | .map((item) => new GestureDetector(
15 | onTap: () => {print('Go')},
16 | child: new Container(
17 | alignment: Alignment.centerLeft,
18 | padding:
19 | const EdgeInsets.symmetric(vertical: 10, horizontal: 38),
20 | child: Text(item,
21 | style: TextStyle(color: AppColors.COLOR_SECONDARY_TEXT)),
22 | ),
23 | ))
24 | .toList();
25 |
26 | return new Container(
27 | decoration: BoxDecoration(
28 | border: Border(
29 | top: BorderSide(color: HexColor('#242B35')),
30 | bottom: BorderSide(color: HexColor('#242B35')),
31 | )),
32 | child: ExpansionTile(
33 | backgroundColor: HexColor('#192533'),
34 | title: Text(_name,
35 | style:
36 | TextStyle(color: AppColors.COLOR_SECONDARY_TEXT, fontSize: 20)),
37 | children: subItemsWidgets,
38 | ),
39 | );
40 | }
41 | }
42 |
43 | class DrawerExpansionWidget extends StatefulWidget {
44 | final String _name;
45 | final List _subItems;
46 |
47 | DrawerExpansionWidget(this._name, this._subItems, {Key key})
48 | : super(key: key);
49 |
50 | @override
51 | DrawerExpansionWidgetState createState() {
52 | return DrawerExpansionWidgetState(_name, _subItems);
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/lib/views/widgets/hex_color.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class HexColor extends Color {
4 | static int _getColorFromHex(String hexColor) {
5 | hexColor = hexColor.toUpperCase().replaceAll("#", "");
6 | if (hexColor.length == 6) {
7 | hexColor = "FF" + hexColor;
8 | }
9 | return int.parse(hexColor, radix: 16);
10 | }
11 |
12 | HexColor(final String hexColor) : super(_getColorFromHex(hexColor));
13 | }
14 |
15 |
--------------------------------------------------------------------------------
/lib/views/widgets/market/market_item.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:steamclient/common/predefined_colors.dart';
3 |
4 | const itemHeight = 84.0;
5 | const itemRadius = 8.0;
6 |
7 | class MarketItem extends StatelessWidget {
8 | final String title;
9 | final String game;
10 | final double price;
11 | final String assetName;
12 |
13 | MarketItem({this.title, this.game, this.price, this.assetName});
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | return Container(
18 | height: itemHeight,
19 | margin: const EdgeInsets.only(bottom: 16),
20 | padding: const EdgeInsets.only(right: 16.0),
21 | decoration: BoxDecoration(
22 | color: AppColors.CHARCOAL_GREY,
23 | borderRadius: BorderRadius.all(Radius.circular(itemRadius)),
24 | boxShadow: [
25 | BoxShadow(
26 | color: Colors.black.withOpacity(0.08),
27 | spreadRadius: 1,
28 | blurRadius: 1,
29 | offset: Offset(0, 2), // changes position of shadow
30 | ),
31 | ],
32 | ),
33 | child: GestureDetector(
34 | onTap: () {},
35 | child: Row(
36 | children: [
37 | Container(
38 | child: Image.asset('assets/images/${this.assetName}'),
39 | margin: const EdgeInsets.symmetric(horizontal: 16),
40 | ),
41 | Expanded(
42 | child: Column(
43 | mainAxisAlignment: MainAxisAlignment.center,
44 | crossAxisAlignment: CrossAxisAlignment.start,
45 | children: [
46 | Text(
47 | this.title,
48 | style: TextStyle(
49 | color: AppColors.WHITE,
50 | fontSize: 16,
51 | ),
52 | ),
53 | Text(
54 | this.game,
55 | style: TextStyle(
56 | color: AppColors.SECONDARY_TEXT,
57 | height: 1.5,
58 | ),
59 | ),
60 | ],
61 | ),
62 | ),
63 | Text(
64 | '\$ ${this.price.toString()}',
65 | style: TextStyle(
66 | color: AppColors.BLUE,
67 | fontSize: 16,
68 | ),
69 | ),
70 | ],
71 | ),
72 | ),
73 | );
74 | }
75 | }
76 |
--------------------------------------------------------------------------------
/lib/views/widgets/market/top_item.dart:
--------------------------------------------------------------------------------
1 | import 'package:fluentui_system_icons/fluentui_system_icons.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:steamclient/common/predefined_colors.dart';
4 |
5 | const itemHeight = 54.0;
6 | const itemRadius = 8.0;
7 |
8 | class TopItem extends StatelessWidget {
9 | final Icon icon;
10 | final String text;
11 |
12 | TopItem({@required this.icon, this.text});
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return Container(
17 | height: itemHeight,
18 | margin: const EdgeInsets.only(bottom: 16),
19 | padding: const EdgeInsets.only(right: 16.0),
20 | decoration: BoxDecoration(
21 | color: AppColors.CHARCOAL_GREY,
22 | borderRadius: BorderRadius.all(Radius.circular(itemRadius)),
23 | boxShadow: [
24 | BoxShadow(
25 | color: Colors.black.withOpacity(0.08),
26 | spreadRadius: 2,
27 | blurRadius: 2,
28 | offset: Offset(0, 5), // changes position of shadow
29 | )
30 | ],
31 | ),
32 | child: GestureDetector(
33 | onTap: () {},
34 | child: Row(
35 | children: [
36 | Container(
37 | height: double.maxFinite,
38 | width: itemHeight,
39 | margin: const EdgeInsets.only(right: 16.0),
40 | decoration: BoxDecoration(
41 | color: AppColors.GUNMETAL_LIGHT,
42 | borderRadius: BorderRadius.all(Radius.circular(itemRadius)),
43 | ),
44 | child: icon,
45 | ),
46 | Expanded(
47 | child: Text(
48 | this.text,
49 | style: TextStyle(
50 | color: AppColors.LIGHT_GREY_BLUE,
51 | fontSize: 16,
52 | ),
53 | ),
54 | ),
55 | Icon(
56 | FluentIcons.chevron_right_28_regular,
57 | color: AppColors.SECONDARY_TEXT,
58 | ),
59 | ],
60 | ),
61 | ),
62 | );
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/lib/views/widgets/profile/comment_input.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 |
3 | class CommentInput extends StatelessWidget {
4 | final Widget child;
5 |
6 | CommentInput({Key key, this.child}) : super(key: key);
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return Container(
11 | child: child,
12 | );
13 | }
14 | }
--------------------------------------------------------------------------------
/lib/views/widgets/profile/comment_section.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:steamclient/utils/utils_colors.dart';
3 | import 'package:steamclient/views/widgets/hex_color.dart';
4 |
5 | class CommentSection extends StatelessWidget {
6 | @override
7 | Widget build(BuildContext context) {
8 | return Flexible(
9 | child: Container(
10 | padding: const EdgeInsets.only(top: 16),
11 | decoration: BoxDecoration(color: HexColor('#141414')),
12 | child: ListView.builder(
13 | itemCount: 2000,
14 | itemBuilder: (ctx, index) {
15 | final maxWidth = MediaQuery.of(context).size.width;
16 |
17 | return ConstrainedBox(
18 | constraints: BoxConstraints(maxWidth: maxWidth),
19 | child: Row(
20 | mainAxisAlignment: MainAxisAlignment.spaceAround,
21 | crossAxisAlignment: CrossAxisAlignment.start,
22 | children: [
23 | Container(
24 | margin: const EdgeInsets.fromLTRB(12, 0, 22, 16),
25 | color: Colors.yellow,
26 | child: Container(
27 | decoration: BoxDecoration(
28 | border: Border.all(
29 | width: 2, color: AppColors.COLOR_AVOCADO)),
30 | child: Image(
31 | width: 40,
32 | height: 40,
33 | fit: BoxFit.cover,
34 | image: NetworkImage(
35 | 'https://images-ext-2.discordapp.net/external/7Pwwon3ALV0GsgZDKALhaQv-2zY4Ml77G8cl_OrfJDM/http/images.nintendolife.com/news/2019/06/nintendos_market_value_drops_by_usd1_billion_after_animal_crossing_switch_delay/large.jpg'),
36 | ),
37 | ),
38 | ),
39 | Expanded(
40 | child: Column(
41 | crossAxisAlignment: CrossAxisAlignment.start,
42 | children: [
43 | Row(children: [
44 | new Text('Test User',
45 | style:
46 | TextStyle(color: Colors.white, fontSize: 15)),
47 | new Text(' 25 Dec, 2018 @ 5:24am',
48 | style: TextStyle(
49 | color: AppColors.COLOR_SLATE, fontSize: 13))
50 | ], crossAxisAlignment: CrossAxisAlignment.end),
51 | Padding(padding: const EdgeInsets.only(bottom: 3)),
52 | Text(
53 | 'May this Christmas bring to your family the promise of a better tomorrow; full of love and hope. Merry Christmas my friend!',
54 | style: TextStyle(
55 | color: AppColors.COLOR_COOL_GRAY, fontSize: 12)),
56 | Padding(padding: const EdgeInsets.only(bottom: 26)),
57 | ],
58 | ),
59 | )
60 | ],
61 | ),
62 | );
63 | },
64 | ),
65 | ));
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/lib/views/widgets/profile/online_friends.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class OnlineFriends extends StatelessWidget {
4 | final onlineF = [
5 | 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/bb/bb4a5af734ea86992bdc3cb73b91512a3f68fc70_full.jpg',
6 | 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/47/47a1db8e26ff97ce5deef7be0cb6bb80b2828b88_full.jpg',
7 | 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/2e/2ea6ba8b06a50e20d99aa4944ca41c71bbdc4ca5_full.jpg',
8 | 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/22/223789bbe53b15f3efdb53d4f865c335150b1751_full.jpg',
9 | 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/b5/b5258414fe4a310dee62ff07028dc534fc3de076_full.jpg',
10 | 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/92/922746ec18971973fcfd82a34414bd3f40d7d6c7_full.jpg'
11 | ];
12 | @override
13 | Widget build(BuildContext context) {
14 | final imgSize = 80.0;
15 | List ofList = onlineF.map((item) {
16 | return Padding(
17 | child: Container(
18 | width: imgSize,
19 | height: imgSize,
20 | decoration: BoxDecoration(
21 | color: Colors.white10,
22 | shape: BoxShape.circle,
23 | image: DecorationImage(
24 | fit: BoxFit.contain,
25 | image: NetworkImage(item),
26 | ),
27 | ),
28 | ),
29 | padding: const EdgeInsets.only(right: 12),
30 | );
31 | }).toList();
32 |
33 | return Container(
34 | padding: const EdgeInsets.symmetric(horizontal: 12),
35 | child: Column(
36 | mainAxisAlignment: MainAxisAlignment.start,
37 | crossAxisAlignment: CrossAxisAlignment.start,
38 | children: [
39 | Padding(padding: const EdgeInsets.all(12)),
40 | Text('Online Friends',
41 | textAlign: TextAlign.start,
42 | style: TextStyle(
43 | color: Colors.white,
44 | fontSize: 16,
45 | fontWeight: FontWeight.bold)),
46 | Padding(padding: const EdgeInsets.all(6)),
47 | SingleChildScrollView(
48 | scrollDirection: Axis.horizontal,
49 | child: Row(
50 | children: ofList,
51 | ),
52 | ),
53 | Padding(padding: const EdgeInsets.all(6)),
54 | ],
55 | ),
56 | );
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/lib/views/widgets/profile/profile_main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:steamclient/common/predefined_colors.dart';
3 |
4 | class ProfileMain extends StatelessWidget {
5 | final imgLink =
6 | 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/f6/f6efaf9edc241ab175714964792226cb217b5126_full.jpg';
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | final double AVATAR_SIZE = 140.0;
11 |
12 | return Container(
13 | color: AppColors.DARK,
14 | padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 14),
15 | child: Row(
16 | children: [
17 | // Left: avatar
18 | Column(
19 | children: [
20 | Container(
21 | width: AVATAR_SIZE,
22 | height: AVATAR_SIZE,
23 | decoration: BoxDecoration(
24 | border: Border.all(width: 3, color: AppColors.DIRTY_GREEN),
25 | shape: BoxShape.circle),
26 | child: CircleAvatar(
27 | backgroundImage: NetworkImage(imgLink),
28 | ),
29 | ),
30 | Container(
31 | decoration: BoxDecoration(
32 | border:
33 | Border.all(width: 2, color: AppColors.DARK_BLUE_GREY),
34 | borderRadius:
35 | BorderRadius.all(new Radius.circular(20.0))),
36 | margin: const EdgeInsetsDirectional.only(top: 14),
37 | padding:
38 | const EdgeInsets.symmetric(horizontal: 22, vertical: 6),
39 | constraints: BoxConstraints(maxWidth: 160),
40 | child: Text(
41 | 'Doko',
42 | overflow: TextOverflow.fade,
43 | maxLines: 1,
44 | textAlign: TextAlign.center,
45 | style: TextStyle(color: Colors.white, fontSize: 14),
46 | ))
47 | ],
48 | ),
49 | // Right: Overview
50 | Expanded(
51 | flex: 2,
52 | child: Column(
53 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
54 | crossAxisAlignment: CrossAxisAlignment.end,
55 | children: [
56 | // 2 statistic items:
57 | Row(
58 | crossAxisAlignment: CrossAxisAlignment.end,
59 | mainAxisAlignment: MainAxisAlignment.end,
60 | children: [
61 | Column(
62 | children: [
63 | OutlinedButton(
64 | onPressed: () {},
65 | child: new Text(
66 | "22",
67 | style: TextStyle(color: Colors.white, fontSize: 18),
68 | ),
69 | style: OutlinedButton.styleFrom(
70 | shape: CircleBorder(),
71 | padding: const EdgeInsets.all(12),
72 | side: BorderSide(color: AppColors.RED_PURPLE),
73 | ),
74 | ),
75 | Padding(padding: const EdgeInsets.only(bottom: 6)),
76 | Text('Level', style: TextStyle(color: Colors.white))
77 | ],
78 | ),
79 | Column(
80 | children: [
81 | OutlinedButton(
82 | onPressed: () {},
83 | child: new Text(
84 | "24",
85 | style: TextStyle(color: Colors.white, fontSize: 18),
86 | ),
87 | style: OutlinedButton.styleFrom(
88 | shape: CircleBorder(),
89 | padding: const EdgeInsets.all(12),
90 | side: BorderSide(color: AppColors.FAWN),
91 | ),
92 | ),
93 | Padding(padding: const EdgeInsets.only(bottom: 6)),
94 | Text('Badges', style: TextStyle(color: Colors.white))
95 | ],
96 | ),
97 | ],
98 | ),
99 | Padding(padding: const EdgeInsets.only(bottom: 10)),
100 | Container(
101 | padding: const EdgeInsets.only(right: 12),
102 | alignment: Alignment.centerLeft,
103 | child: Column(
104 | children: [
105 | Text(
106 | "Playing: Call of Duty Modern Warfare 3",
107 | textAlign: TextAlign.end,
108 | style: TextStyle(
109 | fontSize: 16.0, color: AppColors.PEA_GREEN),
110 | ),
111 | Padding(
112 | padding: const EdgeInsetsDirectional.only(top: 12)),
113 | Container(
114 | width: double.infinity,
115 | child: Text(
116 | "Frankfuit, Germany",
117 | textAlign: TextAlign.end,
118 | style: TextStyle(
119 | fontSize: 14.0, color: AppColors.GUNMETAL),
120 | ),
121 | ),
122 | Padding(
123 | padding: const EdgeInsets.only(top: 6),
124 | ),
125 | Row(
126 | mainAxisAlignment: MainAxisAlignment.end,
127 | children: [
128 | SizedBox(
129 | height: 24,
130 | width: 60,
131 | child: TextButton(
132 | style: TextButton.styleFrom(
133 | primary: AppColors.DARK_BLUE_GREY,
134 | padding: const EdgeInsets.all(4),
135 | shape: RoundedRectangleBorder(
136 | borderRadius: BorderRadius.circular(18.0),
137 | side: BorderSide(
138 | color: AppColors.METALLIC_BLUE),
139 | ),
140 | ),
141 | onPressed: () {},
142 | child: Text(
143 | 'Chat',
144 | style: TextStyle(color: Colors.white),
145 | ),
146 | ),
147 | ),
148 | Padding(
149 | padding: const EdgeInsets.only(right: 16),
150 | ),
151 | SizedBox(
152 | height: 24,
153 | width: 60,
154 | child: TextButton(
155 | style: TextButton.styleFrom(
156 | padding: const EdgeInsets.all(4),
157 | primary: AppColors.DARK_BLUE_GREY,
158 | shape: RoundedRectangleBorder(
159 | borderRadius: BorderRadius.circular(18.0),
160 | side: BorderSide(
161 | color: AppColors.METALLIC_BLUE),
162 | ),
163 | ),
164 | onPressed: () {},
165 | child: Text(
166 | 'More',
167 | style: TextStyle(color: Colors.white),
168 | ),
169 | ),
170 | ),
171 | ],
172 | ),
173 | ],
174 | ),
175 | ),
176 | ],
177 | ),
178 | ),
179 | ],
180 | ),
181 | );
182 | }
183 | }
184 |
--------------------------------------------------------------------------------
/lib/views/widgets/profile/recently_played_games.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class RecentlyPlayedGames extends StatelessWidget {
4 | final headline;
5 |
6 | final gameList = [
7 | 'Call of Duty: Modern Warfare 2',
8 | 'Metro Exodus',
9 | 'Red Dead Redemption 2',
10 | 'Nier Automata',
11 | 'GENSOU Skydrift'
12 | ];
13 | final List imgGameList = [
14 | 'https://steamcdn-a.akamaihd.net/steam/apps/10180/capsule_616x353.jpg?t=1346116649',
15 | 'https://steamcdn-a.akamaihd.net/steam/apps/412020/capsule_616x353.jpg?t=1528703002',
16 | 'https://steamcdn-a.akamaihd.net/steam/apps/1174180/capsule_616x353.jpg?t=1574881682',
17 | 'https://steamcdn-a.akamaihd.net/steam/apps/524220/capsule_616x353.jpg?t=1551189877',
18 | 'https://steamcdn-a.akamaihd.net/steam/apps/1065260/capsule_616x353.jpg?t=1574866875'
19 | ];
20 |
21 | final imageWidth = 150.0;
22 |
23 | RecentlyPlayedGames({this.headline});
24 |
25 | @override
26 | Widget build(BuildContext context) {
27 | List gList = imgGameList.map((item) {
28 | return Padding(
29 | child: Stack(
30 | alignment: Alignment.bottomCenter,
31 | children: [
32 | Image.network(item, width: imageWidth),
33 | Container(
34 | height: 60,
35 | width: imageWidth,
36 | decoration: BoxDecoration(
37 | color: Colors.white,
38 | borderRadius: BorderRadius.all(Radius.circular(2)),
39 | gradient: LinearGradient(
40 | begin: FractionalOffset.topCenter,
41 | end: FractionalOffset.bottomCenter,
42 | colors: [
43 | Colors.grey.withOpacity(0.0),
44 | Colors.black87,
45 | ],
46 | ),
47 | ),
48 | ),
49 | ],
50 | ),
51 | padding: const EdgeInsets.only(right: 12));
52 | }).toList();
53 |
54 | return Container(
55 | padding: const EdgeInsets.symmetric(horizontal: 12),
56 | child: Column(
57 | mainAxisAlignment: MainAxisAlignment.start,
58 | crossAxisAlignment: CrossAxisAlignment.start,
59 | children: [
60 | Padding(padding: const EdgeInsets.all(12)),
61 | Text(headline,
62 | textAlign: TextAlign.start,
63 | style: TextStyle(
64 | color: Colors.white,
65 | fontSize: 16,
66 | fontWeight: FontWeight.bold)),
67 | Padding(padding: const EdgeInsets.all(6)),
68 | SingleChildScrollView(
69 | scrollDirection: Axis.horizontal,
70 | child: Row(
71 | children: gList,
72 | ),
73 | ),
74 | Padding(padding: const EdgeInsets.all(6)),
75 | ],
76 | ),
77 | );
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/lib/views/widgets/profile/statistic_row.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:steamclient/common/predefined_colors.dart';
3 |
4 | class StatisticRow extends StatelessWidget {
5 | @override
6 | Widget build(BuildContext context) {
7 | return Container(
8 | height: 60,
9 | color: AppColors.DARK,
10 | child: Row(
11 | children: [
12 | StatisticCell(96, 'Games'),
13 | StatisticCell(4, 'DLC'),
14 | StatisticCell(23, 'Wishlist'),
15 | StatisticCell(124, 'Friends')
16 | ],
17 | ),
18 | );
19 | }
20 | }
21 |
22 | class StatisticCell extends StatelessWidget {
23 | final number;
24 | final label;
25 |
26 | StatisticCell(this.number, this.label);
27 |
28 | @override
29 | Widget build(BuildContext context) {
30 | return Expanded(
31 | child: Column(
32 | mainAxisAlignment: MainAxisAlignment.center,
33 | children: [
34 | Text(number.toString(),
35 | style: TextStyle(
36 | color: AppColors.LIGHT_NAVY_BLUE,
37 | fontSize: 16,
38 | fontWeight: FontWeight.bold)),
39 | Padding(padding: const EdgeInsets.all(2)),
40 | Text(label, style: TextStyle(color: Colors.white, fontSize: 13))
41 | ],
42 | ),
43 | );
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/lib/views/widgets/storefront/browse_by.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:steamclient/common/predefined_colors.dart';
3 |
4 | class BrowseBy extends StatelessWidget {
5 | final btns = ['New Releases', 'Free Games', 'VR Games'];
6 |
7 | @override
8 | Widget build(BuildContext context) {
9 | return Container(
10 | alignment: Alignment.topLeft,
11 | padding: const EdgeInsets.symmetric(horizontal: 10),
12 | child: Column(
13 | crossAxisAlignment: CrossAxisAlignment.start,
14 | children: [
15 | Text('Browse Steam',
16 | textAlign: TextAlign.right,
17 | style: TextStyle(
18 | color: Colors.white,
19 | fontSize: 17,
20 | fontWeight: FontWeight.bold)),
21 | Padding(padding: const EdgeInsets.all(5)),
22 | Flex(
23 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
24 | direction: Axis.horizontal,
25 | children: btns.map((e) {
26 | return Flexible(
27 | fit: FlexFit.tight,
28 | child: InkWell(
29 | focusColor: AppColors.DARK_BLUE_GREY,
30 | splashColor: AppColors.RED_PURPLE,
31 | highlightColor: AppColors.FAWN,
32 | onTap: () {
33 | print('xxx');
34 | },
35 | child: Container(
36 | padding: const EdgeInsets.symmetric(vertical: 8),
37 | margin: const EdgeInsets.symmetric(horizontal: 4),
38 | decoration: BoxDecoration(
39 | // color: AppColors.LIGHT_NAVY_BLUE,
40 | borderRadius: BorderRadius.circular(5),
41 | border: Border.all(
42 | width: 1.4, color: AppColors.METALLIC_BLUE)),
43 | child: Text(
44 | e,
45 | textAlign: TextAlign.center,
46 | style: TextStyle(
47 | color: AppColors.POWDER_BLUE, fontSize: 12),
48 | ),
49 | ),
50 | ));
51 | }).toList(),
52 | )
53 | ],
54 | ),
55 | );
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/lib/views/widgets/storefront/carousel/carousel_v2.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:steamclient/common/predefined_colors.dart';
4 |
5 | class Carousel extends StatelessWidget {
6 | final imageLinks = [
7 | 'https://cdn.cloudflare.steamstatic.com/steam/apps/1091500/header.jpg?t=1588941389',
8 | 'https://steamcdn-a.akamaihd.net/steam/apps/1121560/capsule_616x353.jpg?t=1572307828',
9 | 'https://steamcdn-a.akamaihd.net/steam/apps/912450/capsule_616x353.jpg?t=1570669161'
10 | ];
11 |
12 | final controller = PageController(initialPage: 1, viewportFraction: 0.8);
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | double width = MediaQuery.of(context).size.width;
17 |
18 | return Container(
19 | width: width,
20 | height: 270,
21 | padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 2),
22 | child: ListView.builder(
23 | itemBuilder: (context, index) {
24 | return Padding(
25 | padding: const EdgeInsets.only(right: 12, top: 22),
26 | child: Column(
27 | crossAxisAlignment: CrossAxisAlignment.start,
28 | children: [
29 | ClipRRect(
30 | borderRadius: BorderRadius.circular(10),
31 | child: Image(
32 | width: width * 0.8,
33 | height: 170,
34 | image: NetworkImage(imageLinks[index > 2 ? 0 : index]),
35 | fit: BoxFit.cover,
36 | ),
37 | ),
38 | Padding(
39 | padding: const EdgeInsets.only(top: 12, bottom: 4),
40 | child: Text(
41 | "Cyberpunk 2077",
42 | style: TextStyle(color: Colors.white, fontSize: 16),
43 | ),
44 | ),
45 | Text(
46 | "Pre-purchase Now",
47 | style: TextStyle(color: AppColors.SLATE_GREY),
48 | ),
49 | ],
50 | ),
51 | );
52 | },
53 | scrollDirection: Axis.horizontal,
54 | itemCount: imageLinks.length,
55 | ),
56 | );
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/lib/views/widgets/storefront/carousel/custom_scroll_physics.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/widgets.dart';
2 |
3 | class CustomScrollPhysics extends ScrollPhysics {
4 | final double itemDimension;
5 |
6 | CustomScrollPhysics({this.itemDimension, ScrollPhysics parent})
7 | : super(parent: parent);
8 |
9 | @override
10 | CustomScrollPhysics applyTo(ScrollPhysics ancestor) {
11 | return CustomScrollPhysics(
12 | itemDimension: itemDimension, parent: buildParent(ancestor));
13 | }
14 |
15 | double _getPage(ScrollMetrics position, double portion) {
16 | return (position.pixels + portion) / itemDimension;
17 | }
18 |
19 | double _getPixels(double page, double portion) {
20 | return (page * itemDimension) - portion;
21 | }
22 |
23 | double _getTargetPixels(
24 | ScrollPosition position,
25 | Tolerance tolerance,
26 | double velocity,
27 | double portion,
28 | ) {
29 | double page = _getPage(position, portion);
30 | if (velocity < -tolerance.velocity) {
31 | page -= 0.5;
32 | } else if (velocity > tolerance.velocity) {
33 | page += 0.5;
34 | }
35 |
36 | return _getPixels(page.roundToDouble(), portion);
37 | }
38 |
39 | @override
40 | Simulation createBallisticSimulation(
41 | ScrollMetrics position, double velocity) {
42 | if ((velocity <= 0.0 && position.pixels <= position.minScrollExtent) ||
43 | (velocity >= 0.0 && position.pixels >= position.maxScrollExtent))
44 | return super.createBallisticSimulation(position, velocity);
45 |
46 | final Tolerance tolerance = this.tolerance;
47 | final portion = (position.extentInside - itemDimension) / 2;
48 | final double target =
49 | _getTargetPixels(position, tolerance, velocity, portion);
50 | if (target != position.pixels)
51 | return ScrollSpringSimulation(spring, position.pixels, target, velocity,
52 | tolerance: tolerance);
53 | return null;
54 | }
55 |
56 | @override
57 | bool get allowImplicitScrolling => false;
58 | }
59 |
--------------------------------------------------------------------------------
/lib/views/widgets/storefront/featured_content.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 |
3 | class FeaturedContent extends StatelessWidget {
4 | @override
5 | Widget build(BuildContext context) {
6 | return new Image(
7 | height: 180,
8 | fit: BoxFit.fitHeight,
9 | image: NetworkImage('https://puu.sh/Cnjbm.png'),
10 | );
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/lib/views/widgets/storefront/search_bar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:steamclient/views/widgets/hex_color.dart';
3 |
4 | class _CustomSearchBarState extends State {
5 | final textController = TextEditingController();
6 |
7 | @override
8 | void dispose() {
9 | textController.dispose();
10 | super.dispose();
11 | }
12 |
13 | @override
14 | Widget build(BuildContext context) {
15 | return Container(
16 | margin: EdgeInsets.symmetric(vertical: 3.0),
17 | decoration: BoxDecoration(
18 | borderRadius: BorderRadius.all(Radius.circular(4)),
19 | border: Border.all(color: HexColor('415d6f'))),
20 | child: Material(
21 | child: TextField(
22 | onTap: () {
23 | print('On tap');
24 | },
25 | style: TextStyle(color: Colors.white),
26 | controller: textController,
27 | decoration: InputDecoration(
28 | hintText: 'Search the stores',
29 | border: InputBorder.none,
30 | hintStyle: TextStyle(fontStyle: FontStyle.italic),
31 | filled: true,
32 | fillColor: HexColor('#416F9F'),
33 | contentPadding: const EdgeInsets.all(3.0))),
34 | ),
35 | );
36 | }
37 | }
38 |
39 | class SearchBar extends StatefulWidget {
40 | @override
41 | _CustomSearchBarState createState() => _CustomSearchBarState();
42 | }
43 |
--------------------------------------------------------------------------------
/lib/views/widgets/storefront/section_header.dart:
--------------------------------------------------------------------------------
1 | import 'package:fluentui_system_icons/fluentui_system_icons.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:steamclient/common/predefined_colors.dart';
4 |
5 | class SectionHeader extends StatelessWidget {
6 | final text;
7 | SectionHeader(this.text);
8 |
9 | @override
10 | Widget build(BuildContext context) {
11 | return Container(
12 | padding: const EdgeInsets.fromLTRB(20, 6, 20, 0),
13 | alignment: Alignment.centerLeft,
14 | child: Row(
15 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
16 | children: [
17 | Text(
18 | this.text,
19 | textAlign: TextAlign.start,
20 | style: TextStyle(
21 | color: Colors.white,
22 | fontSize: 17,
23 | fontWeight: FontWeight.bold,
24 | ),
25 | ),
26 | IconButton(
27 | icon: Icon(
28 | FluentIcons.arrow_forward_16_regular,
29 | color: AppColors.BLUE,
30 | ),
31 | onPressed: () {
32 | print("Button pressed");
33 | },
34 | ),
35 | ],
36 | ),
37 | );
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/lib/views/widgets/storefront/section_onsale.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:steamclient/models/product.dart';
3 | import 'package:steamclient/common/predefined_colors.dart';
4 |
5 | class SectionOnsale extends StatelessWidget {
6 | final String headline;
7 |
8 | SectionOnsale(this.headline);
9 |
10 | final data = [new Map()];
11 |
12 | List generateData() {
13 | var sp1 = new Product();
14 | sp1.price = 47000;
15 | sp1.appName = 'Ori and the Blind Forest: Definitive Edition';
16 | sp1.spotlightImage =
17 | 'https://steamcdn-a.akamaihd.net/steam/spotlights/16010db30c4c00876a2d0cd9/spotlight_image_english.jpg?t=1581108695';
18 |
19 | var sp2 = new Product();
20 | sp2.price = 154000;
21 | sp2.appName = 'Dead Cells';
22 | sp2.spotlightImage =
23 | 'https://cdn.cloudflare.steamstatic.com/steam/apps/870780/library_600x900.jpg?t=1596706126';
24 |
25 | List resp = [];
26 | resp.add(sp1);
27 | resp.add(sp2);
28 | resp.add(sp1);
29 | resp.add(sp2);
30 | resp.add(sp1);
31 | resp.add(sp2);
32 | resp.add(sp2);
33 |
34 | return resp;
35 | }
36 |
37 | @override
38 | Widget build(BuildContext context) {
39 | List spotlistLight = generateData().map((e) {
40 | return Container(
41 | margin: const EdgeInsets.only(left: 22),
42 | padding: EdgeInsets.only(top: 17),
43 | width: 160,
44 | child: InkWell(
45 | onTap: () {
46 | Navigator.pushNamed(context, 'AppPage');
47 | },
48 | child: Column(
49 | crossAxisAlignment: CrossAxisAlignment.start,
50 | children: [
51 | Container(
52 | decoration: BoxDecoration(
53 | boxShadow: [
54 | BoxShadow(
55 | color: Colors.grey.withOpacity(0.2),
56 | spreadRadius: 4,
57 | blurRadius: 12,
58 | offset: Offset(0, 0), // changes position of shadow
59 | ),
60 | ],
61 | ),
62 | child: ClipRRect(
63 | borderRadius: BorderRadius.circular(8),
64 | child: Image.network(
65 | e.spotlightImage,
66 | width: 160,
67 | height: 220,
68 | fit: BoxFit.cover,
69 | ),
70 | ),
71 | ),
72 | Padding(
73 | padding: const EdgeInsets.only(top: 12, bottom: 4),
74 | child: Text(
75 | "Hyperdimension Neptunia Re;Birth1",
76 | style: TextStyle(color: Colors.white, fontSize: 16),
77 | ),
78 | ),
79 | Text.rich(
80 | TextSpan(
81 | text: '\$59.99',
82 | style: TextStyle(
83 | color: AppColors.SLATE_GREY,
84 | decoration: TextDecoration.lineThrough),
85 | children: [
86 | TextSpan(
87 | text: ' ',
88 | style: TextStyle(
89 | color: AppColors.SLATE_GREY,
90 | decoration: TextDecoration.none,
91 | ),
92 | ),
93 | TextSpan(
94 | text: '\$39.99',
95 | style: TextStyle(
96 | color: AppColors.AVOCADO,
97 | fontSize: 18,
98 | fontWeight: FontWeight.bold,
99 | decoration: TextDecoration.none,
100 | ),
101 | ),
102 | ],
103 | ),
104 | ),
105 | ],
106 | ),
107 | ),
108 | );
109 | }).toList();
110 |
111 | return Container(
112 | child: Column(
113 | mainAxisAlignment: MainAxisAlignment.start,
114 | crossAxisAlignment: CrossAxisAlignment.start,
115 | children: [
116 | SingleChildScrollView(
117 | scrollDirection: Axis.horizontal,
118 | child: Row(
119 | children: spotlistLight,
120 | ),
121 | ),
122 | Padding(padding: const EdgeInsets.symmetric(vertical: 7))
123 | ],
124 | ),
125 | );
126 | }
127 | }
128 |
--------------------------------------------------------------------------------
/lib/views/widgets/storefront/type-buttons.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:steamclient/utils/utils_colors.dart';
3 |
4 | // New Releases, Specials, Free Games, By User Tags buttons.
5 | class TypeButton extends StatelessWidget {
6 | final title;
7 | final onPressed;
8 | TypeButton(this.title, {this.onPressed});
9 |
10 | @override
11 | Widget build(BuildContext context) {
12 | return SizedBox(
13 | width: 150,
14 | child: ElevatedButton(
15 | style: ElevatedButton.styleFrom(
16 | primary: AppColors.COLOR_MUTED_BLUE,
17 | textStyle: TextStyle(
18 | color: AppColors.COLOR_LIGHT_GREY_BLUE,
19 | ),
20 | ),
21 | autofocus: false,
22 | onPressed: this.onPressed,
23 | child: Text(this.title),
24 | ),
25 | );
26 | }
27 | }
28 |
29 | class TypeButtons extends StatelessWidget {
30 | @override
31 | Widget build(BuildContext context) {
32 | return Container(
33 | padding: const EdgeInsets.symmetric(vertical: 10),
34 | alignment: Alignment.bottomCenter,
35 | child: Column(
36 | children: [
37 | Row(children: [
38 | TypeButton(
39 | 'New Releases',
40 | onPressed: () => Navigator.pushNamed(context, "AppPage"),
41 | ),
42 | TypeButton(
43 | 'Specials',
44 | onPressed: () => print(34343),
45 | ),
46 | ], mainAxisAlignment: MainAxisAlignment.spaceAround),
47 | Row(children: [
48 | TypeButton(
49 | 'Free Games',
50 | onPressed: () => print(34343),
51 | ),
52 | TypeButton(
53 | 'By User Tags',
54 | onPressed: () => print(34343),
55 | ),
56 | ], mainAxisAlignment: MainAxisAlignment.spaceAround)
57 | ],
58 | ),
59 | );
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/lib/vms/README.md:
--------------------------------------------------------------------------------
1 | Home for all ViewModels.
--------------------------------------------------------------------------------
/lib/vms/auth_vm.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/foundation.dart';
2 | import 'package:steamclient/enums/viewstate.dart';
3 |
4 | class AuthViewModel with ChangeNotifier {
5 | AuthState _state = AuthState.Anonymous;
6 | AuthState get state => _state;
7 |
8 | Future login(String username, String password) {
9 | return Future.delayed(Duration(seconds: 2), () {
10 | _state = AuthState.Authenticated;
11 | return true;
12 | });
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: steamclient
2 | description: Steam Unofficial Client
3 |
4 | publish_to: 'none'
5 |
6 | version: 1.0.0+1
7 |
8 | environment:
9 | sdk: ">=2.7.0 <3.0.0"
10 |
11 | dependencies:
12 | flutter:
13 | sdk: flutter
14 | auto_size_text: any
15 | boardview: any
16 | color: any
17 | palette_generator: ^0.2.3
18 | video_player: ^1.0.0
19 | smart_select: ^4.3.2
20 | country_icons: any
21 | cupertino_icons: ^0.1.3
22 | fluentui_system_icons: any
23 | cupertino_stackview: any
24 | dio: any
25 | sticky_headers: any
26 | drawing_animation: any
27 | flutter_dotenv: any
28 | flutter_screenutil: any
29 | flutter_plugin_android_lifecycle: 1.0.3
30 | sphere_bottom_navigation_bar: any
31 | font_awesome_flutter: any
32 | get_it: any
33 | google_maps_flutter: any
34 | intl: any
35 | percent_indicator: any
36 | popup_menu: any
37 | provider: any
38 | provider_architecture: any
39 | spring_button: any
40 | unicode: any
41 | webview_flutter: any
42 |
43 | dev_dependencies:
44 | image_test_utils: any
45 | flutter_test:
46 | sdk: flutter
47 |
48 | # For information on the generic Dart part of this file, see the
49 | # following page: https://dart.dev/tools/pub/pubspec
50 |
51 | # The following section is specific to Flutter.
52 | flutter:
53 |
54 | # The following line ensures that the Material Icons font is
55 | # included with your application, so that you can use the icons in
56 | # the material Icons class.
57 | uses-material-design: true
58 |
59 | # To add assets to your application, add an assets section, like this:
60 | assets:
61 | - assets/images/
62 | - assets/videos/
63 | - .env
64 |
65 | # An image asset can refer to one or more resolution-specific "variants", see
66 | # https://flutter.dev/assets-and-images/#resolution-aware.
67 |
68 | # For details regarding adding assets from package dependencies, see
69 | # https://flutter.dev/assets-and-images/#from-packages
70 |
71 | # To add custom fonts to your application, add a fonts section here,
72 | # in this "flutter" section. Each entry in this list should have a
73 | # "family" key with the font family name, and a "fonts" key with a
74 | # list giving the asset and other descriptors for the font. For
75 | # example:
76 | # fonts:
77 | # - family: Schyler
78 | # fonts:
79 | # - asset: fonts/Schyler-Regular.ttf
80 | # - asset: fonts/Schyler-Italic.ttf
81 | # style: italic
82 | # - family: Trajan Pro
83 | # fonts:
84 | # - asset: fonts/TrajanPro.ttf
85 | # - asset: fonts/TrajanPro_Bold.ttf
86 | # weight: 700
87 | #
88 | # For details regarding fonts from package dependencies,
89 | # see https://flutter.dev/custom-fonts/#from-packages
90 |
--------------------------------------------------------------------------------
/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 that Flutter provides. 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_test/flutter_test.dart';
9 | import 'package:image_test_utils/image_test_utils.dart';
10 | import 'package:steamclient/main.dart';
11 |
12 | void main() {
13 | testWidgets('Main app rendering test', (WidgetTester tester) async {
14 | provideMockedNetworkImages(() async {
15 | await tester.pumpWidget(SteamClientApp());
16 | });
17 | });
18 | }
19 |
--------------------------------------------------------------------------------