Skip to content

Commit f0be1c6

Browse files
author
Echonox
authored
Merge branch 'master' into master
2 parents 39d72dc + 8a9d55e commit f0be1c6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+3402
-150
lines changed

android/app/src/main/AndroidManifest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
to allow setting breakpoints, to provide hot reload, etc.
77
-->
88
<uses-permission android:name="android.permission.INTERNET"/>
9+
<uses-permission android:name="android.permission.CAMERA" />
10+
<uses-permission android:name="android.permission.FLASHLIGHT" />
911

1012
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
1113
calls FlutterMain.startInitialization(this); in its onCreate method.
@@ -35,5 +37,9 @@
3537
<category android:name="android.intent.category.LAUNCHER"/>
3638
</intent-filter>
3739
</activity>
40+
<!-- Replace YOUR_API_KEY with your Google Place API Key -->
41+
<meta-data
42+
android:name="com.google.android.geo.API_KEY"
43+
android:value="YOUR_API_KEY"/>
3844
</application>
3945
</manifest>

android/build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,14 @@ subprojects {
2929
task clean(type: Delete) {
3030
delete rootProject.buildDir
3131
}
32+
33+
subprojects {
34+
project.configurations.all {
35+
resolutionStrategy.eachDependency { details ->
36+
if (details.requested.group == 'com.android.support'
37+
&& !details.requested.name.contains('multidex') ) {
38+
details.useVersion "26.1.0"
39+
}
40+
}
41+
}
42+
}

assets/fonts/icons.ttf

2.04 KB
Binary file not shown.
245 KB
Loading
358 KB
Loading
315 KB
Loading
207 KB
Loading

ios/Flutter/Debug.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
12
#include "Generated.xcconfig"

ios/Flutter/Release.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
12
#include "Generated.xcconfig"

ios/Podfile

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Uncomment this line to define a global platform for your project
2+
# platform :ios, '9.0'
3+
4+
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5+
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6+
7+
project 'Runner', {
8+
'Debug' => :debug,
9+
'Profile' => :release,
10+
'Release' => :release,
11+
}
12+
13+
def parse_KV_file(file, separator='=')
14+
file_abs_path = File.expand_path(file)
15+
if !File.exists? file_abs_path
16+
return [];
17+
end
18+
pods_ary = []
19+
skip_line_start_symbols = ["#", "/"]
20+
File.foreach(file_abs_path) { |line|
21+
next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
22+
plugin = line.split(pattern=separator)
23+
if plugin.length == 2
24+
podname = plugin[0].strip()
25+
path = plugin[1].strip()
26+
podpath = File.expand_path("#{path}", file_abs_path)
27+
pods_ary.push({:name => podname, :path => podpath});
28+
else
29+
puts "Invalid plugin specification: #{line}"
30+
end
31+
}
32+
return pods_ary
33+
end
34+
35+
target 'Runner' do
36+
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
37+
# referring to absolute paths on developers' machines.
38+
system('rm -rf .symlinks')
39+
system('mkdir -p .symlinks/plugins')
40+
41+
# Flutter Pods
42+
generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
43+
if generated_xcode_build_settings.empty?
44+
puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
45+
end
46+
generated_xcode_build_settings.map { |p|
47+
if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
48+
symlink = File.join('.symlinks', 'flutter')
49+
File.symlink(File.dirname(p[:path]), symlink)
50+
pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
51+
end
52+
}
53+
54+
# Plugin Pods
55+
plugin_pods = parse_KV_file('../.flutter-plugins')
56+
plugin_pods.map { |p|
57+
symlink = File.join('.symlinks', 'plugins', p[:name])
58+
File.symlink(p[:path], symlink)
59+
pod p[:name], :path => File.join(symlink, 'ios')
60+
}
61+
end
62+
63+
post_install do |installer|
64+
installer.pods_project.targets.each do |target|
65+
target.build_configurations.each do |config|
66+
config.build_settings['ENABLE_BITCODE'] = 'NO'
67+
end
68+
end
69+
end

ios/Runner.xcodeproj/project.pbxproj

Lines changed: 93 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
1313
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
1414
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
15+
5EBB00931FF9AD7F401DBA96 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 214FD476CD92F14CFD2AC4E4 /* libPods-Runner.a */; };
1516
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
1617
9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1718
9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
@@ -40,6 +41,7 @@
4041
/* Begin PBXFileReference section */
4142
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
4243
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
44+
214FD476CD92F14CFD2AC4E4 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
4345
2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; };
4446
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
4547
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
@@ -64,12 +66,20 @@
6466
files = (
6567
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
6668
3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
69+
5EBB00931FF9AD7F401DBA96 /* libPods-Runner.a in Frameworks */,
6770
);
6871
runOnlyForDeploymentPostprocessing = 0;
6972
};
7073
/* End PBXFrameworksBuildPhase section */
7174

7275
/* Begin PBXGroup section */
76+
34A007229C01984660B57771 /* Pods */ = {
77+
isa = PBXGroup;
78+
children = (
79+
);
80+
name = Pods;
81+
sourceTree = "<group>";
82+
};
7383
9740EEB11CF90186004384FC /* Flutter */ = {
7484
isa = PBXGroup;
7585
children = (
@@ -90,7 +100,8 @@
90100
9740EEB11CF90186004384FC /* Flutter */,
91101
97C146F01CF9000F007C117D /* Runner */,
92102
97C146EF1CF9000F007C117D /* Products */,
93-
CF3B75C9A7D2FA2A4C99F110 /* Frameworks */,
103+
34A007229C01984660B57771 /* Pods */,
104+
D6244B4594837EC31DA7F7E2 /* Frameworks */,
94105
);
95106
sourceTree = "<group>";
96107
};
@@ -126,19 +137,30 @@
126137
name = "Supporting Files";
127138
sourceTree = "<group>";
128139
};
140+
D6244B4594837EC31DA7F7E2 /* Frameworks */ = {
141+
isa = PBXGroup;
142+
children = (
143+
214FD476CD92F14CFD2AC4E4 /* libPods-Runner.a */,
144+
);
145+
name = Frameworks;
146+
sourceTree = "<group>";
147+
};
129148
/* End PBXGroup section */
130149

131150
/* Begin PBXNativeTarget section */
132151
97C146ED1CF9000F007C117D /* Runner */ = {
133152
isa = PBXNativeTarget;
134153
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
135154
buildPhases = (
155+
045C5AFFF314A156015F73BE /* [CP] Check Pods Manifest.lock */,
136156
9740EEB61CF901F6004384FC /* Run Script */,
137157
97C146EA1CF9000F007C117D /* Sources */,
138158
97C146EB1CF9000F007C117D /* Frameworks */,
139159
97C146EC1CF9000F007C117D /* Resources */,
140160
9705A1C41CF9048500538489 /* Embed Frameworks */,
141161
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
162+
019E91FDB5AE4A565541FDA2 /* [CP] Embed Pods Frameworks */,
163+
208D6AE23DB0AFABEC4F2B4F /* [CP] Copy Pods Resources */,
142164
);
143165
buildRules = (
144166
);
@@ -198,6 +220,76 @@
198220
/* End PBXResourcesBuildPhase section */
199221

200222
/* Begin PBXShellScriptBuildPhase section */
223+
019E91FDB5AE4A565541FDA2 /* [CP] Embed Pods Frameworks */ = {
224+
isa = PBXShellScriptBuildPhase;
225+
buildActionMask = 2147483647;
226+
files = (
227+
);
228+
inputFileListPaths = (
229+
);
230+
inputPaths = (
231+
"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
232+
"${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework",
233+
);
234+
name = "[CP] Embed Pods Frameworks";
235+
outputFileListPaths = (
236+
);
237+
outputPaths = (
238+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
239+
);
240+
runOnlyForDeploymentPostprocessing = 0;
241+
shellPath = /bin/sh;
242+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
243+
showEnvVarsInLog = 0;
244+
};
245+
045C5AFFF314A156015F73BE /* [CP] Check Pods Manifest.lock */ = {
246+
isa = PBXShellScriptBuildPhase;
247+
buildActionMask = 2147483647;
248+
files = (
249+
);
250+
inputFileListPaths = (
251+
);
252+
inputPaths = (
253+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
254+
"${PODS_ROOT}/Manifest.lock",
255+
);
256+
name = "[CP] Check Pods Manifest.lock";
257+
outputFileListPaths = (
258+
);
259+
outputPaths = (
260+
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
261+
);
262+
runOnlyForDeploymentPostprocessing = 0;
263+
shellPath = /bin/sh;
264+
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";
265+
showEnvVarsInLog = 0;
266+
};
267+
208D6AE23DB0AFABEC4F2B4F /* [CP] Copy Pods Resources */ = {
268+
isa = PBXShellScriptBuildPhase;
269+
buildActionMask = 2147483647;
270+
files = (
271+
);
272+
inputFileListPaths = (
273+
);
274+
inputPaths = (
275+
"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-resources.sh",
276+
"${PODS_ROOT}/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Resources/GoogleMaps.bundle",
277+
"${PODS_ROOT}/GooglePlacePicker/Frameworks/GooglePlacePicker.framework/Resources/GooglePlacePicker.bundle",
278+
"${PODS_ROOT}/GooglePlaces/Frameworks/GooglePlaces.framework/Resources/GooglePlaces.bundle",
279+
);
280+
name = "[CP] Copy Pods Resources";
281+
outputFileListPaths = (
282+
);
283+
outputPaths = (
284+
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleMaps.bundle",
285+
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GooglePlacePicker.bundle",
286+
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GooglePlaces.bundle",
287+
);
288+
runOnlyForDeploymentPostprocessing = 0;
289+
shellPath = /bin/sh;
290+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
291+
showEnvVarsInLog = 0;
292+
};
201293
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
202294
isa = PBXShellScriptBuildPhase;
203295
buildActionMask = 2147483647;

ios/Runner.xcworkspace/contents.xcworkspacedata

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

ios/Runner/AppDelegate.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
#include "AppDelegate.h"
22
#include "GeneratedPluginRegistrant.h"
3+
@import GooglePlaces;
4+
@import GoogleMaps;
35

46
@implementation AppDelegate
57

68
- (BOOL)application:(UIApplication *)application
79
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
810
[GeneratedPluginRegistrant registerWithRegistry:self];
11+
// Replace YOUR_API_KEY with your Google Place API Key
12+
[GMSPlacesClient provideAPIKey:@"YOUR_API_KEY"];
13+
[GMSServices provideAPIKey:@"YOUR_API_KEY"];
914
// Override point for customization after application launch.
1015
return [super application:application didFinishLaunchingWithOptions:launchOptions];
1116
}

ios/Runner/Info.plist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
<dict>
55
<key>CFBundleDevelopmentRegion</key>
66
<string>en</string>
7+
<key>NSPhotoLibraryUsageDescription</key>
8+
<string>Select Profile Photo</string>
9+
<key>NSCameraUsageDescription</key>
10+
<string>Select Profile Photo</string>
11+
<key>NSMicrophoneUsageDescription</key>
12+
<string>Its required because we are accessing the camera, but we will never use the microphone</string>
713
<key>CFBundleExecutable</key>
814
<string>$(EXECUTABLE_NAME)</string>
915
<key>CFBundleIdentifier</key>

lib/const/color_const.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ const YELLOW = Color(0xfffbed96);
1212
const BLUE = Color(0xffabecd6);
1313
const PURPLE = Color(0xffccc3fc);
1414
const LIGHT_RED = Color(0xffffc2a1);
15-
const RED = Color(0xffffb6b3);
15+
const RED = Color(0xffffb1bb);

lib/const/fonts_const.dart

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/const/gradient_const.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import 'package:flutter/material.dart';
22
import 'color_const.dart';
33

44
const LinearGradient SIGNUP_BACKGROUND = LinearGradient(
5-
begin: FractionalOffset(0.0, 0.4), end: FractionalOffset(0.9, 0.7),
6-
// Add one stop for each color. Stops should increase from 0 to 1
7-
stops: [0.1, 0.9], colors: [YELLOW, BLUE]);
5+
begin: FractionalOffset(0.0, 0.4), end: FractionalOffset(0.9, 0.7),
6+
// Add one stop for each color. Stops should increase from 0 to 1
7+
stops: [0.1, 0.9], colors: [YELLOW, BLUE],
8+
);
89

910
const LinearGradient SIGNUP_CARD_BACKGROUND = LinearGradient(
1011
tileMode: TileMode.clamp,

lib/const/icons.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
3+
const arrow_left = 0xe900;
4+
const arrow_right = 0xe901;
5+
const check = 0xe902;
6+
const plus = 0xe903;
7+
const camera = 0xe904;

lib/const/images_const.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,7 @@ class MainImagePath {
3939
class SignUpImagePath {
4040
static const String image_path = "assets/images/signup";
4141
static const String SignUpLogo = "$image_path/logo_signup.png";
42+
static const String SignUpPage_11_Bg = "$image_path/signup_page_11_bg.png";
43+
static const String SignUpPage_6_Bg = "$image_path/signup_page_6_bg.png";
44+
static const String SignUpPage_8_Bg = "$image_path/signup_page_8_bg.png";
4245
}

lib/const/page_str_const.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ const SIGN_UP_PAGES = [
99
"Sign up page 02",
1010
"Sign up page 03",
1111
"Sign up page 04",
12+
"Sign up page 05",
13+
"Sign up page 06",
14+
"Sign up page 07",
15+
"Sign up page 08",
16+
"Sign up page 09",
17+
"Sign up page 10",
18+
"Sign up page 11",
1219

1320
/// fixme you could add by your group one name fit one page.
1421
];

lib/const/string_const.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
///
66
///
77
8-
///TODO need international.
98
class StringConst {
109
//strings
1110
static const String APP_NAME = "Flutter UI Nice";

lib/const/styles.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import 'package:flutter/material.dart';
2+
3+
TextStyle hintAndValueStyle = TextStyle(
4+
color: Color(0xff353535),
5+
fontWeight: FontWeight.bold,
6+
fontSize: 14.0,
7+
fontFamily: 'Montserrat'
8+
);

0 commit comments

Comments
 (0)