Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 401f6a6

Browse files
Update packages and fix issue
1 parent cb97c3d commit 401f6a6

File tree

14 files changed

+144
-137
lines changed

14 files changed

+144
-137
lines changed

‎ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>8.0</string>
24+
<string>11.0</string>
2525
</dict>
2626
</plist>

‎ios/Runner.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 46;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -135,7 +135,7 @@
135135
97C146E61CF9000F007C117D /* Project object */ = {
136136
isa = PBXProject;
137137
attributes = {
138-
LastUpgradeCheck = 1020;
138+
LastUpgradeCheck = 1430;
139139
ORGANIZATIONNAME = "";
140140
TargetAttributes = {
141141
97C146ED1CF9000F007C117D = {
@@ -179,10 +179,12 @@
179179
/* Begin PBXShellScriptBuildPhase section */
180180
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
181181
isa = PBXShellScriptBuildPhase;
182+
alwaysOutOfDate = 1;
182183
buildActionMask = 2147483647;
183184
files = (
184185
);
185186
inputPaths = (
187+
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
186188
);
187189
name = "Thin Binary";
188190
outputPaths = (
@@ -193,6 +195,7 @@
193195
};
194196
9740EEB61CF901F6004384FC /* Run Script */ = {
195197
isa = PBXShellScriptBuildPhase;
198+
alwaysOutOfDate = 1;
196199
buildActionMask = 2147483647;
197200
files = (
198201
);
@@ -241,7 +244,6 @@
241244
/* Begin XCBuildConfiguration section */
242245
249021D3217E4FDB00AE95B9 /* Profile */ = {
243246
isa = XCBuildConfiguration;
244-
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
245247
buildSettings = {
246248
ALWAYS_SEARCH_USER_PATHS = NO;
247249
CLANG_ANALYZER_NONNULL = YES;
@@ -281,7 +283,7 @@
281283
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
282284
GCC_WARN_UNUSED_FUNCTION = YES;
283285
GCC_WARN_UNUSED_VARIABLE = YES;
284-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
286+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
285287
MTL_ENABLE_DEBUG_INFO = NO;
286288
SDKROOT = iphoneos;
287289
SUPPORTED_PLATFORMS = iphoneos;
@@ -318,7 +320,6 @@
318320
};
319321
97C147031CF9000F007C117D /* Debug */ = {
320322
isa = XCBuildConfiguration;
321-
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
322323
buildSettings = {
323324
ALWAYS_SEARCH_USER_PATHS = NO;
324325
CLANG_ANALYZER_NONNULL = YES;
@@ -364,7 +365,7 @@
364365
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
365366
GCC_WARN_UNUSED_FUNCTION = YES;
366367
GCC_WARN_UNUSED_VARIABLE = YES;
367-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
368+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
368369
MTL_ENABLE_DEBUG_INFO = YES;
369370
ONLY_ACTIVE_ARCH = YES;
370371
SDKROOT = iphoneos;
@@ -374,7 +375,6 @@
374375
};
375376
97C147041CF9000F007C117D /* Release */ = {
376377
isa = XCBuildConfiguration;
377-
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
378378
buildSettings = {
379379
ALWAYS_SEARCH_USER_PATHS = NO;
380380
CLANG_ANALYZER_NONNULL = YES;
@@ -414,7 +414,7 @@
414414
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
415415
GCC_WARN_UNUSED_FUNCTION = YES;
416416
GCC_WARN_UNUSED_VARIABLE = YES;
417-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
417+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
418418
MTL_ENABLE_DEBUG_INFO = NO;
419419
SDKROOT = iphoneos;
420420
SUPPORTED_PLATFORMS = iphoneos;

‎ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1020"
3+
LastUpgradeVersion = "1430"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

‎ios/Runner/Info.plist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,9 @@
4141
</array>
4242
<key>UIViewControllerBasedStatusBarAppearance</key>
4343
<false/>
44+
<key>CADisableMinimumFrameDurationOnPhone</key>
45+
<true/>
46+
<key>UIApplicationSupportsIndirectInputEvents</key>
47+
<true/>
4448
</dict>
4549
</plist>

‎lib/helper/Colorsys.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
33
class Colorsys {
44
static Color orange = Color.fromRGBO(243, 99, 67, 1);
55
static Color grey = Color.fromRGBO(112, 112, 112, 1);
6-
static Color grey300 = Colors.grey[300];
6+
static Color grey300 = Colors.grey.shade300;
77
static Color lightGrey = Color.fromRGBO(238, 238, 238, 1);
88
static Color darkGray = Color.fromRGBO(87, 87, 87, 1);
99
static Color black = Color.fromRGBO(57, 57, 57, 1);

‎lib/main.dart

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class _HomePageState extends State<HomePage> {
2828
elevation: 0,
2929
backgroundColor: Colorsys.lightGrey,
3030
leading: IconButton(
31+
onPressed: () {},
3132
icon: Icon(Icons.menu, color: Colorsys.darkGray,),
3233
),
3334
),
@@ -121,18 +122,18 @@ class _HomePageState extends State<HomePage> {
121122
children: <Widget>[
122123
Hero(
123124
transitionOnUserGestures: true,
124-
tag: post.user.username,
125+
tag: post.user!.username,
125126
child: CircleAvatar(
126127
maxRadius: 28,
127-
backgroundImage: AssetImage(post.user.profilePicture),
128+
backgroundImage: AssetImage(post.user!.profilePicture),
128129
),
129130
),
130131
SizedBox(width: 20,),
131132
Expanded(
132133
child: Column(
133134
crossAxisAlignment: CrossAxisAlignment.start,
134135
children: <Widget>[
135-
Text(post.user.name, style: TextStyle(
136+
Text(post.user!.name, style: TextStyle(
136137
fontSize: 14,
137138
fontWeight: FontWeight.w700
138139
),),
@@ -199,7 +200,7 @@ class _HomePageState extends State<HomePage> {
199200
padding: EdgeInsets.all(5),
200201
decoration: BoxDecoration(
201202
borderRadius: BorderRadius.circular(4),
202-
color: Colors.grey[600].withOpacity(0.1)
203+
color: Colors.grey.shade600.withOpacity(0.1)
203204
),
204205
child: Center(
205206
child: Image.asset('assets/icons/link.png')
@@ -217,7 +218,7 @@ class _HomePageState extends State<HomePage> {
217218
padding: EdgeInsets.all(5),
218219
decoration: BoxDecoration(
219220
borderRadius: BorderRadius.circular(4),
220-
color: Colors.grey[600].withOpacity(0.1)
221+
color: Colors.grey.shade600.withOpacity(0.1)
221222
),
222223
child: Center(
223224
child: Image.asset('assets/icons/heart.png')

‎lib/models/Collocation.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ class Collocation {
66
final List<String> tags;
77
final List<Post> posts;
88

9-
Collocation({this.name, this.thumbnail, this.tags, this.posts});
9+
Collocation({requiredthis.name, requiredthis.thumbnail, requiredthis.tags,required this.posts});
1010
}

‎lib/models/Post.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import 'package:flutter_photography/models/User.dart';
22

33
class Post {
4-
final User user;
4+
final User? user;
55
final String location;
66
final String dateAgo;
77
final List<String> photos;
8-
final List<String> relatedPhotos;
8+
final List<String>? relatedPhotos;
99

10-
Post({this.location, this.dateAgo, this.photos, this.relatedPhotos, this.user});
10+
Post({requiredthis.location, requiredthis.dateAgo,required this.photos, this.relatedPhotos, this.user});
1111
}

‎lib/models/User.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ class User {
88
final int following;
99
final List<Collocation> collocation;
1010

11-
User({this.name, this.profilePicture, this.username, this.followers, this.following, this.collocation});
11+
User({requiredthis.name, requiredthis.profilePicture, requiredthis.username, requiredthis.followers, requiredthis.following,required this.collocation});
1212

1313
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /