mirror of
https://github.com/SoPat712/RUSwipeShare.git
synced 2025-08-21 19:08:46 -04:00
Merge branch 'master' of https://github.com/SoPat712/RUSwipeShare
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutterfire_ui/auth.dart';
|
|
||||||
import 'package:persistent_bottom_nav_bar/persistent_tab_view.dart';
|
import 'package:persistent_bottom_nav_bar/persistent_tab_view.dart';
|
||||||
import 'package:ruswipeshare/sell.dart';
|
import 'package:ruswipeshare/sell.dart';
|
||||||
import 'profile_screen_custom.dart';
|
import 'profile_screen_custom.dart';
|
||||||
|
@@ -2,10 +2,13 @@
|
|||||||
// for details. All rights reserved. Use of this source code is governed by a
|
// for details. All rights reserved. Use of this source code is governed by a
|
||||||
// BSD-style license that can be found in the LICENSE file.
|
// BSD-style license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// ignore_for_file: implementation_imports
|
||||||
|
|
||||||
import 'package:firebase_auth/firebase_auth.dart' show ActionCodeSettings, FirebaseAuth, FirebaseAuthException, User;
|
import 'package:firebase_auth/firebase_auth.dart' show ActionCodeSettings, FirebaseAuth, FirebaseAuthException, User;
|
||||||
import 'package:flutter/cupertino.dart' hide Title;
|
import 'package:flutter/cupertino.dart' hide Title;
|
||||||
import 'package:flutterfire_ui/i10n.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/material.dart' hide Title;
|
import 'package:flutter/material.dart' hide Title;
|
||||||
|
import 'package:flutter_credit_card/flutter_credit_card.dart';
|
||||||
import 'package:flutterfire_ui/auth.dart';
|
import 'package:flutterfire_ui/auth.dart';
|
||||||
import 'package:flutterfire_ui/src/auth/widgets/internal/loading_button.dart';
|
import 'package:flutterfire_ui/src/auth/widgets/internal/loading_button.dart';
|
||||||
|
|
||||||
@@ -111,10 +114,13 @@ class _EmailVerificationBadgeState extends State<EmailVerificationBadge> {
|
|||||||
if (state == EmailVerificationState.pending)
|
if (state == EmailVerificationState.pending)
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: const [
|
children: [
|
||||||
LoadingIndicator(size: 16, borderWidth: 0.5),
|
const SizedBox(width: 16),
|
||||||
SizedBox(width: 16),
|
Wrap(
|
||||||
Text('Waiting for email verification'),
|
children: const [
|
||||||
|
Text('Log out and log back in to confirm.'),
|
||||||
|
],
|
||||||
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
@@ -216,12 +222,12 @@ class ProfileScreenCustom extends MultiProviderScreen {
|
|||||||
final user = auth.currentUser!;
|
final user = auth.currentUser!;
|
||||||
|
|
||||||
final content = Column(
|
final content = Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Align(
|
Align(
|
||||||
child: UserAvatar(
|
child: UserAvatar(
|
||||||
auth: auth,
|
auth: auth,
|
||||||
placeholderColor: avatarPlaceholderColor,
|
placeholderColor: Theme.of(context).colorScheme.primary,
|
||||||
shape: avatarShape,
|
shape: avatarShape,
|
||||||
size: avatarSize,
|
size: avatarSize,
|
||||||
),
|
),
|
||||||
@@ -243,10 +249,13 @@ class ProfileScreenCustom extends MultiProviderScreen {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
...children,
|
...children,
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 300),
|
||||||
SignOutButton(
|
Align(
|
||||||
auth: auth,
|
alignment: Alignment.bottomCenter,
|
||||||
variant: ButtonVariant.outlined,
|
child: SignOutButton(
|
||||||
|
auth: auth,
|
||||||
|
variant: ButtonVariant.filled,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
],
|
],
|
||||||
@@ -257,8 +266,7 @@ class ProfileScreenCustom extends MultiProviderScreen {
|
|||||||
child: LayoutBuilder(
|
child: LayoutBuilder(
|
||||||
builder: (context, constraints) {
|
builder: (context, constraints) {
|
||||||
if (constraints.maxWidth > 500) {
|
if (constraints.maxWidth > 500) {
|
||||||
return ConstrainedBox(
|
return Expanded(
|
||||||
constraints: const BoxConstraints(maxWidth: 500),
|
|
||||||
child: content,
|
child: content,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
@@ -206,6 +206,14 @@ packages:
|
|||||||
description: flutter
|
description: flutter
|
||||||
source: sdk
|
source: sdk
|
||||||
version: "0.0.0"
|
version: "0.0.0"
|
||||||
|
flutter_credit_card:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: flutter_credit_card
|
||||||
|
sha256: "0fc71e8bfb0e126d2c4247830c04e2acf2b831161411a361e9fa9dc1cc41e605"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "3.0.5"
|
||||||
flutter_dotenv:
|
flutter_dotenv:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
@@ -40,6 +40,7 @@ dependencies:
|
|||||||
flutterfire_ui: ^0.4.3+20
|
flutterfire_ui: ^0.4.3+20
|
||||||
flutter_dotenv: ^5.0.2
|
flutter_dotenv: ^5.0.2
|
||||||
persistent_bottom_nav_bar: any
|
persistent_bottom_nav_bar: any
|
||||||
|
flutter_credit_card: any
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
Reference in New Issue
Block a user