diff --git a/lib/components/loading.dart b/lib/components/loading.dart index 201c345..eb0325c 100644 --- a/lib/components/loading.dart +++ b/lib/components/loading.dart @@ -2,14 +2,15 @@ import 'package:flutter/material.dart'; import 'package:loading_animation_widget/loading_animation_widget.dart'; class Loading extends StatelessWidget { - const Loading({Key? key}) : super(key: key); + const Loading({Key? key, required this.color}) : super(key: key); + final Color color; final double _kSize = 100; @override Widget build(BuildContext context) { return Center( child: LoadingAnimationWidget.hexagonDots( - color: Colors.white, + color: color, size: _kSize, ), ); diff --git a/lib/readme b/lib/readme index 0eb88a4..5fe1c6c 100644 --- a/lib/readme +++ b/lib/readme @@ -29,4 +29,23 @@ service firebase.storage { RUN "flutterfire configure" TO OBTAIN firebase_options +Add these lines to make your splash screen more good +in values/styles.xml and values-night/styles.xml in res folder: + @android:color/transparent + true + + + Change App name + IOS + Open info.plist (located at ios/Runner) + CFBundleName + App Name + + + ANDROID + Open AndroidManifest.xml (located at android/app/src/main) + + // Your app name here + */ \ No newline at end of file diff --git a/lib/views/auth/customer_auth.dart b/lib/views/auth/customer_auth.dart index 5046b0e..7d7ba19 100644 --- a/lib/views/auth/customer_auth.dart +++ b/lib/views/auth/customer_auth.dart @@ -241,7 +241,7 @@ class _CustomerAuthState extends State { final storageRef = FirebaseStorage.instance .ref() .child('user-images') - .child('${credential.user!.uid}jpg'); + .child('${credential.user!.uid}.jpg'); File? file; file = File(profileImage!.path); @@ -429,7 +429,7 @@ class _CustomerAuthState extends State { ), const SizedBox(height: 20), isLoading - ? const Center(child: Loading()) + ? const Center(child: Loading(color:primaryColor)) : Form( key: _formKey, child: Column(