-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement apple login for iOS * Implement apple login for iOS * Implement apple login for iOS * Reformat files * Clean up * Clean up
- Loading branch information
1 parent
1969123
commit 8e8b80b
Showing
27 changed files
with
607 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,28 @@ | ||
include ':app' | ||
pluginManagement { | ||
def flutterSdkPath = { | ||
def properties = new Properties() | ||
file("local.properties").withInputStream { properties.load(it) } | ||
def flutterSdkPath = properties.getProperty("flutter.sdk") | ||
assert flutterSdkPath != null, "flutter.sdk not set in local.properties" | ||
return flutterSdkPath | ||
}() | ||
|
||
def localPropertiesFile = new File(rootProject.projectDir, "local.properties") | ||
def properties = new Properties() | ||
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") | ||
|
||
assert localPropertiesFile.exists() | ||
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } | ||
repositories { | ||
google() | ||
mavenCentral() | ||
gradlePluginPortal() | ||
} | ||
} | ||
|
||
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" | ||
plugins { | ||
id "dev.flutter.flutter-plugin-loader" version "1.0.0" | ||
id "com.android.application" version "7.0.4" apply false | ||
id "org.jetbrains.kotlin.android" version "1.8.21" apply false | ||
id "com.google.gms.google-services" version "4.3.10" apply false | ||
id "com.google.firebase.crashlytics" version "2.9.9" apply false | ||
|
||
} | ||
|
||
include ":app" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
<?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/> | ||
<dict> | ||
<key>com.apple.developer.applesignin</key> | ||
<array> | ||
<string>Default</string> | ||
</array> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
<?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/> | ||
<dict> | ||
<key>com.apple.developer.applesignin</key> | ||
<array> | ||
<string>Default</string> | ||
</array> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// A scrollview that supports Spacer to fill the remaining space | ||
import 'package:flutter/cupertino.dart'; | ||
|
||
class SmartScrollView extends StatelessWidget { | ||
final Widget child; | ||
final EdgeInsetsGeometry? padding; | ||
final ScrollController? controller; | ||
|
||
const SmartScrollView({ | ||
super.key, | ||
required this.child, | ||
this.padding, | ||
this.controller, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return LayoutBuilder( | ||
builder: (context, constraints) { | ||
return SingleChildScrollView( | ||
controller: controller, | ||
padding: padding, | ||
child: ConstrainedBox( | ||
constraints: BoxConstraints( | ||
minHeight: constraints.maxHeight - (padding?.vertical ?? 0), | ||
), | ||
child: IntrinsicHeight( | ||
child: child, | ||
), | ||
), | ||
); | ||
}, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import 'package:equatable/equatable.dart'; | ||
abstract class SignInEvent {} | ||
|
||
class SignInEvent extends Equatable { | ||
@override | ||
List<Object?> get props => []; | ||
} | ||
class GoogleSignInEvent extends SignInEvent {} | ||
|
||
class AppleSignInEvent extends SignInEvent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,13 @@ | ||
import 'package:equatable/equatable.dart'; | ||
|
||
abstract class SignInState extends Equatable {} | ||
|
||
class SignInInitialState extends SignInState { | ||
@override | ||
List<Object?> get props => []; | ||
} | ||
|
||
class SignInLoadingState extends SignInState { | ||
@override | ||
List<Object?> get props => []; | ||
} | ||
|
||
class SignInFailureState extends SignInState { | ||
final String error; | ||
|
||
SignInFailureState({required this.error}); | ||
|
||
@override | ||
List<Object?> get props => [error]; | ||
} | ||
|
||
class SignInSuccessState extends SignInState { | ||
@override | ||
List<Object?> get props => []; | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
|
||
part "sign_in_view_state.freezed.dart"; | ||
|
||
@freezed | ||
class SignInState with _$SignInState { | ||
const factory SignInState( | ||
{@Default(false) appleSignInAvailable, | ||
@Default(false) googleSignInLoading, | ||
@Default(false) appleSignInLoading, | ||
@Default(false) signInSuccess, | ||
String? error}) = _SignInState; | ||
} |
Oops, something went wrong.