-
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.
- Loading branch information
1 parent
d845ed7
commit d57518b
Showing
27 changed files
with
743 additions
and
148 deletions.
There are no files selected for viewing
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> |
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
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,36 @@ | ||
|
||
// 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import 'package:equatable/equatable.dart'; | ||
|
||
class SignInEvent extends Equatable { | ||
@override | ||
List<Object?> get props => []; | ||
} | ||
abstract class SignInEvent{} | ||
|
||
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,18 @@ | ||
import 'package:equatable/equatable.dart'; | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
|
||
abstract class SignInState extends Equatable {} | ||
part "sign_in_view_state.freezed.dart"; | ||
|
||
class SignInInitialState extends SignInState { | ||
@override | ||
List<Object?> get props => []; | ||
} | ||
|
||
class SignInLoadingState extends SignInState { | ||
@override | ||
List<Object?> get props => []; | ||
@freezed | ||
class SignInState with _$SignInState{ | ||
const factory SignInState({ | ||
@Default(false) appleSignInAvailable, | ||
@Default(false) googleSignInLoading, | ||
@Default(false) appleSignInLoading, | ||
@Default(false) signInSuccess, | ||
String? error | ||
}) = _SignInState; | ||
} | ||
|
||
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 => []; | ||
} |
Oops, something went wrong.