diff --git a/assets/images/default-apartment.jpg b/assets/images/default-apartment1.jpg similarity index 100% rename from assets/images/default-apartment.jpg rename to assets/images/default-apartment1.jpg diff --git a/assets/images/default-apartment2.jpg b/assets/images/default-apartment2.jpg new file mode 100644 index 0000000..169e8f9 Binary files /dev/null and b/assets/images/default-apartment2.jpg differ diff --git a/assets/images/default-apartment3.jpg b/assets/images/default-apartment3.jpg new file mode 100644 index 0000000..a5e493f Binary files /dev/null and b/assets/images/default-apartment3.jpg differ diff --git a/ios/Podfile.lock b/ios/Podfile.lock new file mode 100644 index 0000000..40702a4 --- /dev/null +++ b/ios/Podfile.lock @@ -0,0 +1,529 @@ +PODS: + - abseil/algorithm (0.20200225.0): + - abseil/algorithm/algorithm (= 0.20200225.0) + - abseil/algorithm/container (= 0.20200225.0) + - abseil/algorithm/algorithm (0.20200225.0): + - abseil/base/config + - abseil/algorithm/container (0.20200225.0): + - abseil/algorithm/algorithm + - abseil/base/core_headers + - abseil/meta/type_traits + - abseil/base (0.20200225.0): + - abseil/base/atomic_hook (= 0.20200225.0) + - abseil/base/base (= 0.20200225.0) + - abseil/base/base_internal (= 0.20200225.0) + - abseil/base/bits (= 0.20200225.0) + - abseil/base/config (= 0.20200225.0) + - abseil/base/core_headers (= 0.20200225.0) + - abseil/base/dynamic_annotations (= 0.20200225.0) + - abseil/base/endian (= 0.20200225.0) + - abseil/base/errno_saver (= 0.20200225.0) + - abseil/base/exponential_biased (= 0.20200225.0) + - abseil/base/log_severity (= 0.20200225.0) + - abseil/base/malloc_internal (= 0.20200225.0) + - abseil/base/periodic_sampler (= 0.20200225.0) + - abseil/base/pretty_function (= 0.20200225.0) + - abseil/base/raw_logging_internal (= 0.20200225.0) + - abseil/base/spinlock_wait (= 0.20200225.0) + - abseil/base/throw_delegate (= 0.20200225.0) + - abseil/base/atomic_hook (0.20200225.0): + - abseil/base/config + - abseil/base/core_headers + - abseil/base/base (0.20200225.0): + - abseil/base/atomic_hook + - abseil/base/base_internal + - abseil/base/config + - abseil/base/core_headers + - abseil/base/dynamic_annotations + - abseil/base/log_severity + - abseil/base/raw_logging_internal + - abseil/base/spinlock_wait + - abseil/meta/type_traits + - abseil/base/base_internal (0.20200225.0): + - abseil/base/config + - abseil/meta/type_traits + - abseil/base/bits (0.20200225.0): + - abseil/base/config + - abseil/base/core_headers + - abseil/base/config (0.20200225.0) + - abseil/base/core_headers (0.20200225.0): + - abseil/base/config + - abseil/base/dynamic_annotations (0.20200225.0) + - abseil/base/endian (0.20200225.0): + - abseil/base/config + - abseil/base/core_headers + - abseil/base/errno_saver (0.20200225.0): + - abseil/base/config + - abseil/base/exponential_biased (0.20200225.0): + - abseil/base/config + - abseil/base/core_headers + - abseil/base/log_severity (0.20200225.0): + - abseil/base/config + - abseil/base/core_headers + - abseil/base/malloc_internal (0.20200225.0): + - abseil/base/base + - abseil/base/base_internal + - abseil/base/config + - abseil/base/core_headers + - abseil/base/dynamic_annotations + - abseil/base/raw_logging_internal + - abseil/base/periodic_sampler (0.20200225.0): + - abseil/base/core_headers + - abseil/base/exponential_biased + - abseil/base/pretty_function (0.20200225.0) + - abseil/base/raw_logging_internal (0.20200225.0): + - abseil/base/atomic_hook + - abseil/base/config + - abseil/base/core_headers + - abseil/base/log_severity + - abseil/base/spinlock_wait (0.20200225.0): + - abseil/base/base_internal + - abseil/base/core_headers + - abseil/base/errno_saver + - abseil/base/throw_delegate (0.20200225.0): + - abseil/base/config + - abseil/base/raw_logging_internal + - abseil/container/common (0.20200225.0): + - abseil/meta/type_traits + - abseil/types/optional + - abseil/container/compressed_tuple (0.20200225.0): + - abseil/utility/utility + - abseil/container/container_memory (0.20200225.0): + - abseil/memory/memory + - abseil/utility/utility + - abseil/container/fixed_array (0.20200225.0): + - abseil/algorithm/algorithm + - abseil/base/core_headers + - abseil/base/dynamic_annotations + - abseil/base/throw_delegate + - abseil/container/compressed_tuple + - abseil/memory/memory + - abseil/container/flat_hash_map (0.20200225.0): + - abseil/algorithm/container + - abseil/container/container_memory + - abseil/container/hash_function_defaults + - abseil/container/raw_hash_map + - abseil/memory/memory + - abseil/container/hash_function_defaults (0.20200225.0): + - abseil/base/config + - abseil/hash/hash + - abseil/strings/strings + - abseil/container/hash_policy_traits (0.20200225.0): + - abseil/meta/type_traits + - abseil/container/hashtable_debug_hooks (0.20200225.0): + - abseil/base/config + - abseil/container/hashtablez_sampler (0.20200225.0): + - abseil/base/base + - abseil/base/core_headers + - abseil/base/exponential_biased + - abseil/container/have_sse + - abseil/debugging/stacktrace + - abseil/memory/memory + - abseil/synchronization/synchronization + - abseil/utility/utility + - abseil/container/have_sse (0.20200225.0) + - abseil/container/inlined_vector (0.20200225.0): + - abseil/algorithm/algorithm + - abseil/base/core_headers + - abseil/base/throw_delegate + - abseil/container/inlined_vector_internal + - abseil/memory/memory + - abseil/container/inlined_vector_internal (0.20200225.0): + - abseil/base/core_headers + - abseil/container/compressed_tuple + - abseil/memory/memory + - abseil/meta/type_traits + - abseil/types/span + - abseil/container/layout (0.20200225.0): + - abseil/base/core_headers + - abseil/meta/type_traits + - abseil/strings/strings + - abseil/types/span + - abseil/utility/utility + - abseil/container/raw_hash_map (0.20200225.0): + - abseil/base/throw_delegate + - abseil/container/container_memory + - abseil/container/raw_hash_set + - abseil/container/raw_hash_set (0.20200225.0): + - abseil/base/bits + - abseil/base/config + - abseil/base/core_headers + - abseil/base/endian + - abseil/container/common + - abseil/container/compressed_tuple + - abseil/container/container_memory + - abseil/container/hash_policy_traits + - abseil/container/hashtable_debug_hooks + - abseil/container/hashtablez_sampler + - abseil/container/have_sse + - abseil/container/layout + - abseil/memory/memory + - abseil/meta/type_traits + - abseil/utility/utility + - abseil/debugging/debugging_internal (0.20200225.0): + - abseil/base/config + - abseil/base/core_headers + - abseil/base/dynamic_annotations + - abseil/base/errno_saver + - abseil/base/raw_logging_internal + - abseil/debugging/demangle_internal (0.20200225.0): + - abseil/base/base + - abseil/base/config + - abseil/base/core_headers + - abseil/debugging/stacktrace (0.20200225.0): + - abseil/base/config + - abseil/base/core_headers + - abseil/debugging/debugging_internal + - abseil/debugging/symbolize (0.20200225.0): + - abseil/base/base + - abseil/base/config + - abseil/base/core_headers + - abseil/base/dynamic_annotations + - abseil/base/malloc_internal + - abseil/base/raw_logging_internal + - abseil/debugging/debugging_internal + - abseil/debugging/demangle_internal + - abseil/hash/city (0.20200225.0): + - abseil/base/config + - abseil/base/core_headers + - abseil/base/endian + - abseil/hash/hash (0.20200225.0): + - abseil/base/core_headers + - abseil/base/endian + - abseil/container/fixed_array + - abseil/hash/city + - abseil/meta/type_traits + - abseil/numeric/int128 + - abseil/strings/strings + - abseil/types/optional + - abseil/types/variant + - abseil/utility/utility + - abseil/memory (0.20200225.0): + - abseil/memory/memory (= 0.20200225.0) + - abseil/memory/memory (0.20200225.0): + - abseil/base/core_headers + - abseil/meta/type_traits + - abseil/meta (0.20200225.0): + - abseil/meta/type_traits (= 0.20200225.0) + - abseil/meta/type_traits (0.20200225.0): + - abseil/base/config + - abseil/numeric/int128 (0.20200225.0): + - abseil/base/config + - abseil/base/core_headers + - abseil/strings/internal (0.20200225.0): + - abseil/base/config + - abseil/base/core_headers + - abseil/base/endian + - abseil/base/raw_logging_internal + - abseil/meta/type_traits + - abseil/strings/str_format (0.20200225.0): + - abseil/strings/str_format_internal + - abseil/strings/str_format_internal (0.20200225.0): + - abseil/base/config + - abseil/base/core_headers + - abseil/meta/type_traits + - abseil/numeric/int128 + - abseil/strings/strings + - abseil/types/span + - abseil/strings/strings (0.20200225.0): + - abseil/base/base + - abseil/base/bits + - abseil/base/config + - abseil/base/core_headers + - abseil/base/endian + - abseil/base/raw_logging_internal + - abseil/base/throw_delegate + - abseil/memory/memory + - abseil/meta/type_traits + - abseil/numeric/int128 + - abseil/strings/internal + - abseil/synchronization/graphcycles_internal (0.20200225.0): + - abseil/base/base + - abseil/base/base_internal + - abseil/base/config + - abseil/base/core_headers + - abseil/base/malloc_internal + - abseil/base/raw_logging_internal + - abseil/synchronization/kernel_timeout_internal (0.20200225.0): + - abseil/base/core_headers + - abseil/base/raw_logging_internal + - abseil/time/time + - abseil/synchronization/synchronization (0.20200225.0): + - abseil/base/atomic_hook + - abseil/base/base + - abseil/base/base_internal + - abseil/base/config + - abseil/base/core_headers + - abseil/base/dynamic_annotations + - abseil/base/malloc_internal + - abseil/base/raw_logging_internal + - abseil/debugging/stacktrace + - abseil/debugging/symbolize + - abseil/synchronization/graphcycles_internal + - abseil/synchronization/kernel_timeout_internal + - abseil/time/time + - abseil/time (0.20200225.0): + - abseil/time/internal (= 0.20200225.0) + - abseil/time/time (= 0.20200225.0) + - abseil/time/internal (0.20200225.0): + - abseil/time/internal/cctz (= 0.20200225.0) + - abseil/time/internal/cctz (0.20200225.0): + - abseil/time/internal/cctz/civil_time (= 0.20200225.0) + - abseil/time/internal/cctz/time_zone (= 0.20200225.0) + - abseil/time/internal/cctz/civil_time (0.20200225.0): + - abseil/base/config + - abseil/time/internal/cctz/time_zone (0.20200225.0): + - abseil/base/config + - abseil/time/internal/cctz/civil_time + - abseil/time/time (0.20200225.0): + - abseil/base/base + - abseil/base/core_headers + - abseil/base/raw_logging_internal + - abseil/numeric/int128 + - abseil/strings/strings + - abseil/time/internal/cctz/civil_time + - abseil/time/internal/cctz/time_zone + - abseil/types (0.20200225.0): + - abseil/types/any (= 0.20200225.0) + - abseil/types/bad_any_cast (= 0.20200225.0) + - abseil/types/bad_any_cast_impl (= 0.20200225.0) + - abseil/types/bad_optional_access (= 0.20200225.0) + - abseil/types/bad_variant_access (= 0.20200225.0) + - abseil/types/compare (= 0.20200225.0) + - abseil/types/optional (= 0.20200225.0) + - abseil/types/span (= 0.20200225.0) + - abseil/types/variant (= 0.20200225.0) + - abseil/types/any (0.20200225.0): + - abseil/base/config + - abseil/base/core_headers + - abseil/meta/type_traits + - abseil/types/bad_any_cast + - abseil/utility/utility + - abseil/types/bad_any_cast (0.20200225.0): + - abseil/base/config + - abseil/types/bad_any_cast_impl + - abseil/types/bad_any_cast_impl (0.20200225.0): + - abseil/base/config + - abseil/base/raw_logging_internal + - abseil/types/bad_optional_access (0.20200225.0): + - abseil/base/config + - abseil/base/raw_logging_internal + - abseil/types/bad_variant_access (0.20200225.0): + - abseil/base/config + - abseil/base/raw_logging_internal + - abseil/types/compare (0.20200225.0): + - abseil/base/core_headers + - abseil/meta/type_traits + - abseil/types/optional (0.20200225.0): + - abseil/base/base_internal + - abseil/base/config + - abseil/base/core_headers + - abseil/memory/memory + - abseil/meta/type_traits + - abseil/types/bad_optional_access + - abseil/utility/utility + - abseil/types/span (0.20200225.0): + - abseil/algorithm/algorithm + - abseil/base/core_headers + - abseil/base/throw_delegate + - abseil/meta/type_traits + - abseil/types/variant (0.20200225.0): + - abseil/base/base_internal + - abseil/base/config + - abseil/base/core_headers + - abseil/meta/type_traits + - abseil/types/bad_variant_access + - abseil/utility/utility + - abseil/utility/utility (0.20200225.0): + - abseil/base/base_internal + - abseil/base/config + - abseil/meta/type_traits + - BoringSSL-GRPC (0.0.7): + - BoringSSL-GRPC/Implementation (= 0.0.7) + - BoringSSL-GRPC/Interface (= 0.0.7) + - BoringSSL-GRPC/Implementation (0.0.7): + - BoringSSL-GRPC/Interface (= 0.0.7) + - BoringSSL-GRPC/Interface (0.0.7) + - cloud_firestore (2.5.4): + - Firebase/Firestore (= 8.8.0) + - firebase_core + - Flutter + - Firebase/Auth (8.8.0): + - Firebase/CoreOnly + - FirebaseAuth (~> 8.8.0) + - Firebase/CoreOnly (8.8.0): + - FirebaseCore (= 8.8.0) + - Firebase/Firestore (8.8.0): + - Firebase/CoreOnly + - FirebaseFirestore (~> 8.8.0) + - firebase_auth (3.1.4): + - Firebase/Auth (= 8.8.0) + - firebase_core + - Flutter + - firebase_core (1.8.0): + - Firebase/CoreOnly (= 8.8.0) + - Flutter + - FirebaseAuth (8.8.0): + - FirebaseCore (~> 8.0) + - GoogleUtilities/AppDelegateSwizzler (~> 7.4) + - GoogleUtilities/Environment (~> 7.4) + - GTMSessionFetcher/Core (~> 1.5) + - FirebaseCore (8.8.0): + - FirebaseCoreDiagnostics (~> 8.0) + - GoogleUtilities/Environment (~> 7.4) + - GoogleUtilities/Logger (~> 7.4) + - FirebaseCoreDiagnostics (8.8.0): + - GoogleDataTransport (~> 9.0) + - GoogleUtilities/Environment (~> 7.4) + - GoogleUtilities/Logger (~> 7.4) + - nanopb (~> 2.30908.0) + - FirebaseFirestore (8.8.0): + - abseil/algorithm (= 0.20200225.0) + - abseil/base (= 0.20200225.0) + - abseil/container/flat_hash_map (= 0.20200225.0) + - abseil/memory (= 0.20200225.0) + - abseil/meta (= 0.20200225.0) + - abseil/strings/strings (= 0.20200225.0) + - abseil/time (= 0.20200225.0) + - abseil/types (= 0.20200225.0) + - FirebaseCore (~> 8.0) + - "gRPC-C++ (~> 1.28.0)" + - leveldb-library (~> 1.22) + - nanopb (~> 2.30908.0) + - Flutter (1.0.0) + - geolocator_apple (1.2.0): + - Flutter + - google_maps_flutter (0.0.1): + - Flutter + - GoogleMaps + - GoogleDataTransport (9.1.2): + - GoogleUtilities/Environment (~> 7.2) + - nanopb (~> 2.30908.0) + - PromisesObjC (< 3.0, >= 1.2) + - GoogleMaps (4.2.0): + - GoogleMaps/Maps (= 4.2.0) + - GoogleMaps/Base (4.2.0) + - GoogleMaps/Maps (4.2.0): + - GoogleMaps/Base + - GoogleUtilities/AppDelegateSwizzler (7.6.0): + - GoogleUtilities/Environment + - GoogleUtilities/Logger + - GoogleUtilities/Network + - GoogleUtilities/Environment (7.6.0): + - PromisesObjC (< 3.0, >= 1.2) + - GoogleUtilities/Logger (7.6.0): + - GoogleUtilities/Environment + - GoogleUtilities/Network (7.6.0): + - GoogleUtilities/Logger + - "GoogleUtilities/NSData+zlib" + - GoogleUtilities/Reachability + - "GoogleUtilities/NSData+zlib (7.6.0)" + - GoogleUtilities/Reachability (7.6.0): + - GoogleUtilities/Logger + - "gRPC-C++ (1.28.2)": + - "gRPC-C++/Implementation (= 1.28.2)" + - "gRPC-C++/Interface (= 1.28.2)" + - "gRPC-C++/Implementation (1.28.2)": + - abseil/container/inlined_vector (= 0.20200225.0) + - abseil/memory/memory (= 0.20200225.0) + - abseil/strings/str_format (= 0.20200225.0) + - abseil/strings/strings (= 0.20200225.0) + - abseil/types/optional (= 0.20200225.0) + - "gRPC-C++/Interface (= 1.28.2)" + - gRPC-Core (= 1.28.2) + - "gRPC-C++/Interface (1.28.2)" + - gRPC-Core (1.28.2): + - gRPC-Core/Implementation (= 1.28.2) + - gRPC-Core/Interface (= 1.28.2) + - gRPC-Core/Implementation (1.28.2): + - abseil/container/inlined_vector (= 0.20200225.0) + - abseil/memory/memory (= 0.20200225.0) + - abseil/strings/str_format (= 0.20200225.0) + - abseil/strings/strings (= 0.20200225.0) + - abseil/types/optional (= 0.20200225.0) + - BoringSSL-GRPC (= 0.0.7) + - gRPC-Core/Interface (= 1.28.2) + - gRPC-Core/Interface (1.28.2) + - GTMSessionFetcher/Core (1.7.0) + - leveldb-library (1.22.1) + - nanopb (2.30908.0): + - nanopb/decode (= 2.30908.0) + - nanopb/encode (= 2.30908.0) + - nanopb/decode (2.30908.0) + - nanopb/encode (2.30908.0) + - path_provider (0.0.1): + - Flutter + - PromisesObjC (2.0.0) + +DEPENDENCIES: + - cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) + - firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) + - firebase_core (from `.symlinks/plugins/firebase_core/ios`) + - Flutter (from `Flutter`) + - geolocator_apple (from `.symlinks/plugins/geolocator_apple/ios`) + - google_maps_flutter (from `.symlinks/plugins/google_maps_flutter/ios`) + - path_provider (from `.symlinks/plugins/path_provider/ios`) + +SPEC REPOS: + trunk: + - abseil + - BoringSSL-GRPC + - Firebase + - FirebaseAuth + - FirebaseCore + - FirebaseCoreDiagnostics + - FirebaseFirestore + - GoogleDataTransport + - GoogleMaps + - GoogleUtilities + - "gRPC-C++" + - gRPC-Core + - GTMSessionFetcher + - leveldb-library + - nanopb + - PromisesObjC + +EXTERNAL SOURCES: + cloud_firestore: + :path: ".symlinks/plugins/cloud_firestore/ios" + firebase_auth: + :path: ".symlinks/plugins/firebase_auth/ios" + firebase_core: + :path: ".symlinks/plugins/firebase_core/ios" + Flutter: + :path: Flutter + geolocator_apple: + :path: ".symlinks/plugins/geolocator_apple/ios" + google_maps_flutter: + :path: ".symlinks/plugins/google_maps_flutter/ios" + path_provider: + :path: ".symlinks/plugins/path_provider/ios" + +SPEC CHECKSUMS: + abseil: 6c8eb7892aefa08d929b39f9bb108e5367e3228f + BoringSSL-GRPC: 8edf627ee524575e2f8d19d56f068b448eea3879 + cloud_firestore: 814002a5be7dc955deaa18216ebe8c2e8be15d10 + Firebase: 629510f1a9ddb235f3a7c5c8ceb23ba887f0f814 + firebase_auth: 0b7168e2db1bff6e5b40a7dc268447b8dedb59c1 + firebase_core: 3b4c707f5a8eff38f52fd5580895bcd89357bf42 + FirebaseAuth: bcf0adeff88bda5dcb3beeabe5760f1226ab7b2f + FirebaseCore: 98b29e3828f0a53651c363937a7f7d92a19f1ba2 + FirebaseCoreDiagnostics: fe77f42da6329d6d83d21fd9d621a6b704413bfc + FirebaseFirestore: 29baf05d5e7e0d5003eb34e5805d92b9858b36d4 + Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a + geolocator_apple: b741765c55dc21950e3e106e8b3584e55cf81ce5 + google_maps_flutter: abdb8dee6c52d4be36ad131ee6ebfacd14417c5a + GoogleDataTransport: 629c20a4d363167143f30ea78320d5a7eb8bd940 + GoogleMaps: eb03e327edfd70b06de1e6e321653f73712df7ad + GoogleUtilities: 684ee790a24f73ebb2d1d966e9711c203f2a4237 + "gRPC-C++": 13d8ccef97d5c3c441b7e3c529ef28ebee86fad2 + gRPC-Core: 4afa11bfbedf7cdecd04de535a9e046893404ed5 + GTMSessionFetcher: 43748f93435c2aa068b1cbe39655aaf600652e91 + leveldb-library: 50c7b45cbd7bf543c81a468fe557a16ae3db8729 + nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96 + path_provider: d1e9807085df1f9cc9318206cd649dc0b76be3de + PromisesObjC: 68159ce6952d93e17b2dfe273b8c40907db5ba58 + +PODFILE CHECKSUM: 0cf5276381fde92a1fe42f83e0dc18319dfe28c3 + +COCOAPODS: 1.11.2 diff --git a/lib/screens/myprofile/myprofile.dart b/lib/screens/myprofile/myprofile.dart index 7c22819..b2dab5b 100644 --- a/lib/screens/myprofile/myprofile.dart +++ b/lib/screens/myprofile/myprofile.dart @@ -1,11 +1,12 @@ import 'package:flutter/material.dart'; import 'package:flutter_svg/flutter_svg.dart'; +import 'package:flutter/services.dart'; class MyProfile extends StatelessWidget { const MyProfile({Key? key}) : super(key: key); // function to build the apartment card - Card getApartmentCard(BuildContext context, name, address) { + Card getApartmentCard(BuildContext context, name, address, imagePath) { return Card( elevation: 10, child: Padding( @@ -13,7 +14,7 @@ class MyProfile extends StatelessWidget { child: Row( children: [ Image( - image: AssetImage("assets/images/default-apartment.jpg"), + image: AssetImage(imagePath), width: MediaQuery.of(context).size.width * 0.4, ), Container( @@ -40,162 +41,172 @@ class MyProfile extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( - body: SingleChildScrollView( - child: Container( - child: Column( - children: [ - Container( - width: double.infinity, - // height: MediaQuery.of(context).size.height * 0.35, - decoration: const BoxDecoration( - borderRadius: BorderRadius.only( - bottomLeft: Radius.circular(50), - bottomRight: Radius.circular(50), - topLeft: Radius.circular(10), - topRight: Radius.circular(10), + body: SingleChildScrollView( + child: Container( + child: Column( + children: [ + Container( + width: double.infinity, + // height: MediaQuery.of(context).size.height * 0.35, + decoration: const BoxDecoration( + borderRadius: BorderRadius.only( + bottomLeft: Radius.circular(50), + bottomRight: Radius.circular(50), + topLeft: Radius.circular(10), + topRight: Radius.circular(10), + ), + gradient: LinearGradient( + begin: Alignment.bottomRight, + stops: [ + 0.1, + 0.9 + ], + colors: [ + Color.fromRGBO(96, 122, 200, 1), + Color.fromRGBO(137, 169, 221, 1) + ])), + child: Padding( + padding: EdgeInsets.symmetric(vertical: 40, horizontal: 3), + child: Column( + children: [ + Text( + "My Profile", + style: TextStyle( + fontWeight: FontWeight.bold, + fontSize: 18, + color: Color(0xffffffff)), + ), + Container( + padding: EdgeInsets.symmetric( + vertical: 40, horizontal: 20), + alignment: Alignment.topLeft, + child: Column( + children: [ + Row( + children: [ + CircleAvatar( + backgroundImage: NetworkImage( + "https://source.unsplash.com/random/"), + radius: 30, + ), + SizedBox( + width: 20, + ), + Text("Brice Seraphin", + style: TextStyle( + fontWeight: FontWeight.bold, + fontSize: 15, + color: Color(0xffffffff))) + ], + ), + SizedBox( + height: 20, + ), + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + IconButton( + icon: SvgPicture.asset( + "assets/icons/phone.svg", + semanticsLabel: "Phone"), + onPressed: () => + {print("Opening the dialer")}, + ), + SizedBox( + width: 20, + ), + IconButton( + icon: SvgPicture.asset( + "assets/icons/location.svg", + semanticsLabel: "Location"), + onPressed: () => + {print("Opening the dialer")}, + ), + ], + ) + ], + )) + ], ), - gradient: LinearGradient( - begin: Alignment.bottomRight, - stops: [ - 0.1, - 0.9 - ], - colors: [ - Color.fromRGBO(96, 122, 200, 1), - Color.fromRGBO(137, 169, 221, 1) - ])), + )), + Container( + alignment: Alignment.topLeft, child: Padding( - padding: EdgeInsets.symmetric(vertical: 15, horizontal: 3), + padding: EdgeInsets.symmetric(vertical: 15, horizontal: 10), child: Column( + mainAxisAlignment: MainAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text( - "My Profile", - style: TextStyle( - fontWeight: FontWeight.bold, - fontSize: 18, - color: Color(0xffffffff)), + Padding( + padding: const EdgeInsets.symmetric( + vertical: 3, horizontal: 12), + child: Text( + "Current Apartment", + style: TextStyle(fontWeight: FontWeight.w800), + ), + ), + SizedBox( + height: 15, ), - Container( - padding: EdgeInsets.symmetric( - vertical: 55, horizontal: 20), - alignment: Alignment.topLeft, - child: Column( - children: [ - Row( - children: [ - CircleAvatar( - backgroundImage: NetworkImage( - "https://source.unsplash.com/random/"), - radius: 30, - ), - SizedBox( - width: 20, - ), - Text("Brice Seraphin", - style: TextStyle( - fontWeight: FontWeight.bold, - fontSize: 15, - color: Color(0xffffffff))) - ], - ), - SizedBox( - height: 20, - ), - Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - IconButton( - icon: SvgPicture.asset( - "assets/icons/phone.svg", - semanticsLabel: "Phone"), - onPressed: () => - {print("Opening the dialer")}, - ), - SizedBox( - width: 20, - ), - IconButton( - icon: SvgPicture.asset( - "assets/icons/location.svg", - semanticsLabel: "Location"), - onPressed: () => - {print("Opening the dialer")}, - ), - ], - ) - ], - )) + // list the current Apartment + Column( + children: [ + getApartmentCard( + context, + "Davidson Residence", + "221B Baker Street, NY", + "assets/images/default-apartment1.jpg"), + ], + ) ], ), - )), - Container( - alignment: Alignment.topLeft, - child: Padding( - padding: EdgeInsets.symmetric(vertical: 15, horizontal: 10), - child: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Padding( - padding: const EdgeInsets.symmetric( - vertical: 3, horizontal: 12), - child: Text( - "Current Apartment", - style: TextStyle(fontWeight: FontWeight.w800), - ), - ), - SizedBox( - height: 15, - ), - // list the current Apartment - Column( - children: [ - getApartmentCard(context, "Davidson Residence", - "221B Baker Street, Earth"), - ], - ) - ], ), ), - ), - SizedBox( - height: 20, - ), - Container( - alignment: Alignment.topLeft, - child: Padding( - padding: EdgeInsets.symmetric(vertical: 15, horizontal: 10), - child: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Padding( - padding: const EdgeInsets.symmetric( - vertical: 3, horizontal: 12), - child: Text( - "Previous Apartment", - style: TextStyle(fontWeight: FontWeight.w800), + SizedBox( + height: 20, + ), + Container( + alignment: Alignment.topLeft, + child: Padding( + padding: EdgeInsets.symmetric(vertical: 15, horizontal: 10), + child: Column( + mainAxisAlignment: MainAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Padding( + padding: const EdgeInsets.symmetric( + vertical: 3, horizontal: 12), + child: Text( + "Previous Apartment", + style: TextStyle(fontWeight: FontWeight.w800), + ), ), - ), - SizedBox( - height: 15, - ), - // list the current Apartment - Column( - children: [ - getApartmentCard(context, "Ellipse Residence", - "356B Baker Street, Earth"), - getApartmentCard(context, "Delta Residence", - "495B Baker Street, Earth"), - ], - ) - ], + SizedBox( + height: 15, + ), + // list the current Apartment + Column( + children: [ + getApartmentCard( + context, + "Ellipse Residence", + "356B Baker Street, NY", + "assets/images/default-apartment2.jpg"), + getApartmentCard( + context, + "Delta Residence", + "495B Baker Street, NY", + "assets/images/default-apartment3.jpg"), + ], + ) + ], + ), ), - ), - ) - ], + ) + ], + ), ), ), - )); + ); } }