mirror of
				https://github.com/SoPat712/RUSwipeShare.git
				synced 2025-10-30 12:33:57 -04:00 
			
		
		
		
	Force PersistentNavBar
This commit is contained in:
		| @@ -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'; | ||||||
|  |  | ||||||
| @@ -112,7 +115,6 @@ class _EmailVerificationBadgeState extends State<EmailVerificationBadge> { | |||||||
|             Row( |             Row( | ||||||
|               mainAxisAlignment: MainAxisAlignment.center, |               mainAxisAlignment: MainAxisAlignment.center, | ||||||
|               children: [ |               children: [ | ||||||
|                  |  | ||||||
|                 const SizedBox(width: 16), |                 const SizedBox(width: 16), | ||||||
|                 Wrap( |                 Wrap( | ||||||
|                   children: const [ |                   children: const [ | ||||||
| @@ -220,7 +222,7 @@ 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( | ||||||
| @@ -247,10 +249,13 @@ class ProfileScreenCustom extends MultiProviderScreen { | |||||||
|           ), |           ), | ||||||
|         ], |         ], | ||||||
|         ...children, |         ...children, | ||||||
|         const SizedBox(height: 16), |         const SizedBox(height: 300), | ||||||
|         SignOutButton( |         Align( | ||||||
|  |           alignment: Alignment.bottomCenter, | ||||||
|  |           child: SignOutButton( | ||||||
|             auth: auth, |             auth: auth, | ||||||
|           variant: ButtonVariant.outlined, |             variant: ButtonVariant.filled, | ||||||
|  |           ), | ||||||
|         ), |         ), | ||||||
|         const SizedBox(height: 8), |         const SizedBox(height: 8), | ||||||
|       ], |       ], | ||||||
| @@ -261,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