Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 28 additions & 2 deletions .metadata
Original file line number Diff line number Diff line change
@@ -1,10 +1,36 @@
# 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.
# This file should be version controlled.

version:
revision: 84f3d28555368a70270e9ac8390a9441df95e752
revision: 2ad6cd72c040113b47ee9055e722606a490ef0da
channel: stable

project_type: plugin

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 2ad6cd72c040113b47ee9055e722606a490ef0da
base_revision: 2ad6cd72c040113b47ee9055e722606a490ef0da
- platform: android
create_revision: 2ad6cd72c040113b47ee9055e722606a490ef0da
base_revision: 2ad6cd72c040113b47ee9055e722606a490ef0da
- platform: ios
create_revision: 2ad6cd72c040113b47ee9055e722606a490ef0da
base_revision: 2ad6cd72c040113b47ee9055e722606a490ef0da
- platform: web
create_revision: 2ad6cd72c040113b47ee9055e722606a490ef0da
base_revision: 2ad6cd72c040113b47ee9055e722606a490ef0da

# User provided section

# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
Original file line number Diff line number Diff line change
@@ -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>
18 changes: 18 additions & 0 deletions example/android/app/src/main/res/values-night/styles.xml
Original file line number Diff line number Diff line change
@@ -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
the Flutter engine 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>
1 change: 0 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ void main() async {
// using the configuration for the example app.
const String exampleAppApiKey = '4_mL-YkAEegR9vzt6QvHWI5Q';
const String exampleAppApiDomain = 'us1.gigya.com';
const String exampleCname = 'YOUR-CNAME-HERE';

try {
await sdk.initSdk(
Expand Down
2 changes: 1 addition & 1 deletion example/lib/routes/account_information_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class _AccountInformationPageState extends State<AccountInformationPage>
super.initState();
accountInformationFuture = _getAccountInformation();
}

Widget _buildAccountInformationPage(BuildContext context, Account account) {
return SingleChildScrollView(
child: Column(
Expand Down
4 changes: 2 additions & 2 deletions example/lib/routes/biometrics_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class _BiometricsPageState extends State<BiometricsPage>
),
trailing: Wrap(
crossAxisAlignment: WrapCrossAlignment.center,
children: [
children: <Widget>[
Padding(
padding: const EdgeInsets.symmetric(horizontal: 5),
child: Switch(
Expand All @@ -167,7 +167,7 @@ class _BiometricsPageState extends State<BiometricsPage>
),
trailing: Wrap(
crossAxisAlignment: WrapCrossAlignment.center,
children: [
children: <Widget>[
Padding(
padding: const EdgeInsets.symmetric(horizontal: 5),
child: Switch(
Expand Down
14 changes: 8 additions & 6 deletions example/lib/routes/login_with_credentials_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class _LoginWithCredentialsPageState extends State<LoginWithCredentialsPage> {
if (mounted) {
setState(() {
_inProgress = false;
_requestResult = 'Login success: \n\n ${account.uid}';
_requestResult = 'Login success: \n\n ${account.toJson()}';
});
}
}
Expand Down Expand Up @@ -112,15 +112,15 @@ class _LoginWithCredentialsPageState extends State<LoginWithCredentialsPage> {
}

void _resolveLinkAccount(LinkAccountResolver resolver) async {
final ConflictingAccounts? conflictingAccounts =
await resolver.conflictingAccounts;
final ConflictingAccount? conflictingAccount =
await resolver.conflictingAccount;

if (!mounted || conflictingAccounts == null) {
if (!mounted || conflictingAccount == null) {
return;
}

if (conflictingAccounts.loginProviders.contains('site')) {
_showLinkToSiteBottomSheet(conflictingAccounts.loginID, resolver);
if (conflictingAccount.loginProviders.contains('site')) {
_showLinkToSiteBottomSheet(conflictingAccount.loginID, resolver);
} else {
_showLinkToSocialBottomSheet(resolver);
}
Expand Down Expand Up @@ -234,6 +234,7 @@ class _LoginWithCredentialsPageState extends State<LoginWithCredentialsPage> {
),
TextField(
controller: _linkPasswordController,
obscureText: true,
decoration: const InputDecoration(hintText: 'password'),
),
Padding(
Expand Down Expand Up @@ -351,6 +352,7 @@ class _LoginWithCredentialsPageState extends State<LoginWithCredentialsPage> {
padding: const EdgeInsets.all(8.0),
child: TextFormField(
controller: _passwordController,
obscureText: true,
decoration: const InputDecoration(hintText: 'Enter password'),
validator: (String? value) {
if (value == null || value.trim().isEmpty) {
Expand Down
14 changes: 9 additions & 5 deletions example/lib/routes/manage_connections_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ class _ManageConnectionsPageState extends State<ManageConnectionsPage> {
case ConnectionState.none:
case ConnectionState.active:
case ConnectionState.waiting:
return Column(
return const Column(
mainAxisAlignment: MainAxisAlignment.center,
children: const <Widget>[
children: <Widget>[
CircularProgressIndicator(),
Text('Fetching account...'),
],
Expand Down Expand Up @@ -109,19 +109,23 @@ class _ManageConnectionsPageState extends State<ManageConnectionsPage> {
}

final Account account = snapshot.data!;
final String socialProviders = account.socialProviders ?? '';

return Column(
children: <Widget>[
const Text('Social connections for this account'),
Expanded(
child: socialProviders.isEmpty
child: account.socialProviders.isEmpty
? const Center(
child: Text(
'No social connections for this account',
),
)
: Text(socialProviders),
: ListView.builder(
itemBuilder: (_, int index) => Text(
account.socialProviders[index],
),
itemCount: account.socialProviders.length,
),
),
Padding(
padding: const EdgeInsets.symmetric(vertical: 16),
Expand Down
Loading