Skip to content

Commit

Permalink
🚀 project completed
Browse files Browse the repository at this point in the history
  • Loading branch information
manas pratap thakur committed Jun 16, 2021
0 parents commit 55f3a53
Show file tree
Hide file tree
Showing 203 changed files with 1,957 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .gitignore
@@ -0,0 +1,46 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/

# Web related
lib/generated_plugin_registrant.dart

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
10 changes: 10 additions & 0 deletions .metadata
@@ -0,0 +1,10 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: 1d9032c7e1d867f071f2277eb1673e8f9b0274e3
channel: stable

project_type: app
13 changes: 13 additions & 0 deletions README.md
@@ -0,0 +1,13 @@
# Developing apps with 3D designs in flutter

This project is developed to showcase how we can use some basic principles to convert any 3D design into a working application using Flutter.

On starting this app with `flutter run`, here is how the final working version will look like.

![](https://github.com/manaspratap/flutter_3d/blob/main/readme_assets/app_demo.gif)

Awesome right? I know!

A detailed article on this is coming soon!

Also stay tuned for a detiled video on the same.
11 changes: 11 additions & 0 deletions android/.gitignore
@@ -0,0 +1,11 @@
gradle-wrapper.jar
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java

# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
key.properties
59 changes: 59 additions & 0 deletions android/app/build.gradle
@@ -0,0 +1,59 @@
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 30

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.flutter_3d"
minSdkVersion 16
targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}

buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}

flutter {
source '../..'
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
7 changes: 7 additions & 0 deletions android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.flutter_3d">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
41 changes: 41 additions & 0 deletions android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,41 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.flutter_3d">
<application
android:label="flutter_3d"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<!-- Displays an Android View that continues showing the launch screen
Drawable until Flutter paints its first frame, then this splash
screen fades out. A splash screen is useful to avoid any visual
gap between the end of Android's launch screen and the painting of
Flutter's first frame. -->
<meta-data
android:name="io.flutter.embedding.android.SplashScreenDrawable"
android:resource="@drawable/launch_background"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
</manifest>
@@ -0,0 +1,6 @@
package com.example.flutter_3d

import io.flutter.embedding.android.FlutterActivity

class MainActivity: FlutterActivity() {
}
12 changes: 12 additions & 0 deletions android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />

<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
12 changes: 12 additions & 0 deletions android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />

<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
Binary file added android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
18 changes: 18 additions & 0 deletions android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
7 changes: 7 additions & 0 deletions android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.flutter_3d">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
31 changes: 31 additions & 0 deletions android/build.gradle
@@ -0,0 +1,31 @@
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

allprojects {
repositories {
google()
jcenter()
}
}

rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
delete rootProject.buildDir
}
3 changes: 3 additions & 0 deletions android/gradle.properties
@@ -0,0 +1,3 @@
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
6 changes: 6 additions & 0 deletions android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
11 changes: 11 additions & 0 deletions android/settings.gradle
@@ -0,0 +1,11 @@
include ':app'

def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
def properties = new Properties()

assert localPropertiesFile.exists()
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }

def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
Binary file added assets/bikeImageSequence/0001.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0002.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0003.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0004.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0005.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0006.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0007.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0008.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0009.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0010.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0011.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0012.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0013.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0014.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0015.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0016.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0017.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0018.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0019.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0020.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bikeImageSequence/0021.png
Binary file added assets/bikeImageSequence/0022.png
Binary file added assets/bikeImageSequence/0023.png
Binary file added assets/bikeImageSequence/0024.png
Binary file added assets/bikeImageSequence/0025.png
Binary file added assets/bikeImageSequence/0026.png
Binary file added assets/bikeImageSequence/0027.png
Binary file added assets/bikeImageSequence/0028.png
Binary file added assets/bikeImageSequence/0029.png
Binary file added assets/bikeImageSequence/0030.png
Binary file added assets/bikeImageSequence/0031.png
Binary file added assets/bikeImageSequence/0032.png
Binary file added assets/bikeImageSequence/0033.png
Binary file added assets/bikeImageSequence/0034.png
Binary file added assets/bikeImageSequence/0035.png
Binary file added assets/bikeImageSequence/0036.png
Binary file added assets/bikeImageSequence/0037.png
Binary file added assets/bikeImageSequence/0038.png
Binary file added assets/bikeImageSequence/0039.png
Binary file added assets/bikeImageSequence/0040.png
Binary file added assets/bikeImageSequence/0041.png
Binary file added assets/bikeImageSequence/0042.png
Binary file added assets/bikeImageSequence/0043.png
Binary file added assets/bikeImageSequence/0044.png
Binary file added assets/bikeImageSequence/0045.png
Binary file added assets/bikeImageSequence/0046.png
Binary file added assets/bikeImageSequence/0047.png
Binary file added assets/bikeImageSequence/0048.png
Binary file added assets/bikeImageSequence/0049.png
Binary file added assets/bikeImageSequence/0050.png
Binary file added assets/bikeImageSequence/0051.png
Binary file added assets/bikeImageSequence/0052.png
Binary file added assets/bikeImageSequence/0053.png
Binary file added assets/bikeImageSequence/0054.png
Binary file added assets/bikeImageSequence/0055.png
Binary file added assets/bikeImageSequence/0056.png
Binary file added assets/bikeImageSequence/0057.png
Binary file added assets/bikeImageSequence/0058.png
Binary file added assets/bikeImageSequence/0059.png
Binary file added assets/bikeImageSequence/0060.png
Binary file added assets/bikeImageSequence/0061.png
Binary file added assets/bikeImageSequence/0062.png
Binary file added assets/bikeImageSequence/0063.png
Binary file added assets/bikeImageSequence/0064.png
Binary file added assets/bikeImageSequence/0065.png
Binary file added assets/bikeImageSequence/0066.png
Binary file added assets/bikeImageSequence/0067.png
Binary file added assets/bikeImageSequence/0068.png
Binary file added assets/bikeImageSequence/0069.png
Binary file added assets/bikeImageSequence/0070.png
Binary file added assets/bikeImageSequence/0071.png
Binary file added assets/bikeImageSequence/0072.png
Binary file added assets/bikeImageSequence/0073.png
Binary file added assets/bikeImageSequence/0074.png
Binary file added assets/bikeImageSequence/0075.png
Binary file added assets/bikeImageSequence/0076.png
Binary file added assets/bikeImageSequence/0077.png
Binary file added assets/bikeImageSequence/0078.png
Binary file added assets/bikeImageSequence/0079.png
Binary file added assets/bikeImageSequence/0080.png
Binary file added assets/bikeImageSequence/0081.png
Binary file added assets/bikeImageSequence/0082.png
Binary file added assets/bikeImageSequence/0083.png
Binary file added assets/bikeImageSequence/0084.png
Binary file added assets/bikeImageSequence/0085.png
Binary file added assets/bikeImageSequence/0086.png
Binary file added assets/bikeImageSequence/0087.png
Binary file added assets/bikeImageSequence/0088.png
Binary file added assets/bikeImageSequence/0089.png
Binary file added assets/bikeImageSequence/0090.png
Binary file added assets/bikeImageSequence/0091.png
Binary file added assets/bikeImageSequence/0092.png
Binary file added assets/bikeImageSequence/0093.png
Binary file added assets/bikeImageSequence/0094.png
Binary file added assets/bikeImageSequence/0095.png
Binary file added assets/bikeImageSequence/0096.png
Binary file added assets/bikeImageSequence/0097.png
Binary file added assets/bikeImageSequence/0098.png
Binary file added assets/bikeImageSequence/0099.png
Binary file added assets/bikeImageSequence/0100.png
Binary file added assets/bikeImageSequence/0101.png
Binary file added assets/bikeImageSequence/0102.png
Binary file added assets/bikeImageSequence/0103.png
Binary file added assets/bikeImageSequence/0104.png
Binary file added assets/bikeImageSequence/0105.png
Binary file added assets/bikeImageSequence/0106.png
Binary file added assets/bikeImageSequence/0107.png
Binary file added assets/bikeImageSequence/0108.png
Binary file added assets/bikeImageSequence/0109.png
Binary file added assets/bikeImageSequence/0110.png
Binary file added assets/bikeImageSequence/0111.png
Binary file added assets/bikeImageSequence/0112.png
Binary file added assets/bikeImageSequence/0113.png
Binary file added assets/bikeImageSequence/0114.png
Binary file added assets/bikeImageSequence/0115.png
Binary file added assets/bikeImageSequence/0116.png
Binary file added assets/bikeImageSequence/0117.png
Binary file added assets/bikeImageSequence/0118.png
Binary file added assets/bikeImageSequence/0119.png
Binary file added assets/bikeImageSequence/0120.png
Binary file added assets/images/bike_info.png
Binary file added assets/images/bike_logo.png
Binary file added assets/images/bike_model_name.png
Binary file added assets/images/bike_specs_break.png
Binary file added assets/images/bike_specs_cylinder.png
Binary file added assets/images/bike_specs_disp.png
Binary file added assets/images/bike_specs_fuel.png
Binary file added assets/images/bike_specs_height.png
Binary file added assets/images/bike_specs_type.png
Binary file added assets/images/royal_enfield.png
Binary file added assets/images/royal_enfield_symbol.png
32 changes: 32 additions & 0 deletions ios/.gitignore
@@ -0,0 +1,32 @@
*.mode1v3
*.mode2v3
*.moved-aside
*.pbxuser
*.perspectivev3
**/*sync/
.sconsign.dblite
.tags*
**/.vagrant/
**/DerivedData/
Icon?
**/Pods/
**/.symlinks/
profile
xcuserdata
**/.generated/
Flutter/App.framework
Flutter/Flutter.framework
Flutter/Flutter.podspec
Flutter/Generated.xcconfig
Flutter/app.flx
Flutter/app.zip
Flutter/flutter_assets/
Flutter/flutter_export_environment.sh
ServiceDefinitions.json
Runner/GeneratedPluginRegistrant.*

# Exceptions to above rules.
!default.mode1v3
!default.mode2v3
!default.pbxuser
!default.perspectivev3
26 changes: 26 additions & 0 deletions ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>App</string>
<key>CFBundleIdentifier</key>
<string>io.flutter.flutter.app</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>App</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>8.0</string>
</dict>
</plist>
1 change: 1 addition & 0 deletions ios/Flutter/Debug.xcconfig
@@ -0,0 +1 @@
#include "Generated.xcconfig"
1 change: 1 addition & 0 deletions ios/Flutter/Release.xcconfig
@@ -0,0 +1 @@
#include "Generated.xcconfig"

0 comments on commit 55f3a53

Please sign in to comment.