diff --git a/assets/background.webp b/assets/background.webp index 55c482f..1d70c73 100644 Binary files a/assets/background.webp and b/assets/background.webp differ diff --git a/assets/login_background.webp b/assets/login_background.webp index 45d4682..515d3b4 100644 Binary files a/assets/login_background.webp and b/assets/login_background.webp differ diff --git a/assets/register_background.webp b/assets/register_background.webp index 760f295..207b478 100644 Binary files a/assets/register_background.webp and b/assets/register_background.webp differ diff --git a/lib/widgets/page_background_widget.dart b/lib/widgets/page_background_widget.dart index 046a45a..48f882f 100644 --- a/lib/widgets/page_background_widget.dart +++ b/lib/widgets/page_background_widget.dart @@ -15,8 +15,6 @@ class PageBackgroundWidget extends StatelessWidget { height: MediaQuery.of(context).size.height + 200, decoration: BoxDecoration( image: DecorationImage( - // Image.asset('assets/ph_logo2.webp', - // width: 192, cacheWidth: (192 * MediaQuery.of(context).devicePixelRatio).round()), image: AssetImage( page == 'login' ? 'assets/login_background.webp' @@ -24,10 +22,9 @@ class PageBackgroundWidget extends StatelessWidget { ? 'assets/register_background.webp' : 'assets/background.webp', ), - // image: Image.asset('assets/login_background.webp', width: 192, cacheWidth: (192 * MediaQuery.of(context).devicePixelRatio).round()), - fit: BoxFit.fitWidth, - alignment: Alignment.topCenter, - opacity: 0.3, + fit: BoxFit.cover, // Ensures the background covers the entire container + alignment: Alignment.center, + opacity: 0.3, // Adjusts the opacity as needed ), gradient: const RadialGradient( tileMode: TileMode.clamp, diff --git a/pubspec.lock b/pubspec.lock index 4bddb9d..9d2d78b 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -145,14 +145,6 @@ packages: url: "https://pub.dev" source: hosted version: "7.0.1" - file_cache_provider: - dependency: transitive - description: - name: file_cache_provider - sha256: f53d123ac8ed04498b8f133edffd23ddeabe3e03bad6bd656339f23affa862ce - url: "https://pub.dev" - source: hosted - version: "1.0.0" fixnum: dependency: transitive description: @@ -256,14 +248,6 @@ packages: url: "https://pub.dev" source: hosted version: "4.1.2" - image_cache: - dependency: "direct main" - description: - name: image_cache - sha256: "96849d37eb2672280bc6f2754ca71ddeceb2cd475c6a8b10c2add29eaa68a30c" - url: "https://pub.dev" - source: hosted - version: "1.0.1" internet_connection_checker: dependency: "direct main" description: @@ -320,14 +304,6 @@ packages: url: "https://pub.dev" source: hosted version: "5.1.1" - loading_animation_widget: - dependency: transitive - description: - name: loading_animation_widget - sha256: "9fe23381f3096e902f39e87e487648ff7f74925e86234353fa885bb9f6c98004" - url: "https://pub.dev" - source: hosted - version: "1.3.0" logging: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index f03d47b..a12b118 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -20,7 +20,6 @@ dependencies: intl: ^0.20.2 visibility_detector: ^0.4.0+2 internet_connection_checker: ^3.0.1 - image_cache: ^1.0.1 dev_dependencies: flutter_test: