diff --git a/lib/features/dapps/presentation/dapps_page.dart b/lib/features/dapps/presentation/dapps_page.dart index 19805176..5abdd1d5 100644 --- a/lib/features/dapps/presentation/dapps_page.dart +++ b/lib/features/dapps/presentation/dapps_page.dart @@ -27,7 +27,6 @@ class DAppsPage extends HookConsumerWidget { useContentPadding: false, childrenPadding: const EdgeInsets.symmetric( horizontal: Sizes.spaceSmall, vertical: Sizes.spaceNormal), - // backgroundColor: ColorsTheme.of(context).screenBackground, backgroundGradient: const LinearGradient( colors: [ Color(0xFF0E1629), diff --git a/lib/features/dapps/presentation/responsive_layout/dapps_layout/build_card.dart b/lib/features/dapps/presentation/responsive_layout/dapps_layout/build_card.dart index 8eca9575..c72e5fe9 100644 --- a/lib/features/dapps/presentation/responsive_layout/dapps_layout/build_card.dart +++ b/lib/features/dapps/presentation/responsive_layout/dapps_layout/build_card.dart @@ -19,6 +19,7 @@ Widget buildCard( void Function()? shatter, bool animated = false, }) { + final isMobile = mainAxisCount == CardMainAxisCount.mobile; final imageRatioFactor = (isMobile ? 0.2 : 0.1); String? image; @@ -53,7 +54,7 @@ Widget buildCard( clipBehavior: Clip.none, children: [ Container( - padding: const EdgeInsets.all(Sizes.spaceXLarge), + padding: const EdgeInsets.all(Sizes.spaceLarge), decoration: BoxDecoration( borderRadius: const BorderRadius.all(Radius.circular(15)), gradient: LinearGradient( @@ -115,7 +116,7 @@ Widget buildCard( ], ), const SizedBox( - height: Sizes.spaceXSmall, + height: Sizes.space2XSmall, ), Text( name, diff --git a/lib/features/dapps/presentation/responsive_layout/dapps_layout/card_item.dart b/lib/features/dapps/presentation/responsive_layout/dapps_layout/card_item.dart index 6478efea..b259876b 100644 --- a/lib/features/dapps/presentation/responsive_layout/dapps_layout/card_item.dart +++ b/lib/features/dapps/presentation/responsive_layout/dapps_layout/card_item.dart @@ -4,6 +4,6 @@ class CardCrossAxisCount { } class CardMainAxisCount { - static const int mobile = 3; + static const int mobile = 4; static const int tablet = 5; } diff --git a/lib/features/dapps/presentation/responsive_layout/dapps_layout/dapp_card.dart b/lib/features/dapps/presentation/responsive_layout/dapps_layout/dapp_card.dart index b08ad270..4b957c18 100644 --- a/lib/features/dapps/presentation/responsive_layout/dapps_layout/dapp_card.dart +++ b/lib/features/dapps/presentation/responsive_layout/dapps_layout/dapp_card.dart @@ -41,7 +41,7 @@ class DAppCard extends HookConsumerWidget { final isMobile = mainAxisCount == CardMainAxisCount.mobile; final imageRatioFactor = (isMobile ? 0.2 : 0.1); - final animatedSize = (isMobile ? 0.3 : 0.15); + final animatedSize = (isMobile ? 0.25 : 0.15); final sizeLimit = (imageRatioFactor / animatedSize); final animationController = useAnimationController( @@ -90,21 +90,19 @@ class DAppCard extends HookConsumerWidget { return SizedBox( width: MediaQuery.of(context).size.width / (mainAxisCount), height: MediaQuery.of(context).size.width / (mainAxisCount), - child: Center( - child: buildCard( - context, - dapp, - mainAxisCount, - onTap, - isEditMode, - width, - ratioFactor: animation.value < sizeLimit - ? null - : (animatedSize * animation.value), - shatter: shatter, - actions: actions, - animated: animation.value != 0.0, - ), + child: buildCard( + context, + dapp, + mainAxisCount, + onTap, + isEditMode, + width, + ratioFactor: animation.value < sizeLimit + ? null + : (animatedSize * animation.value), + shatter: shatter, + actions: actions, + animated: animation.value != 0.0, ), ); }, diff --git a/lib/main.dart b/lib/main.dart index c6646b5a..c794d0be 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -49,6 +49,7 @@ void main() { final isLoggedIn = authUseCase.loggedIn; await Biometric.load(); + Paint.enableDithering = true; final appVersionUseCase = container.read(appVersionUseCaseProvider); await appVersionUseCase.checkLatestVersion(); diff --git a/pubspec.lock b/pubspec.lock index e842bc7c..c91331bc 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -435,10 +435,10 @@ packages: dependency: "direct main" description: name: fl_shared_link - sha256: f9c0da5cdedccad1a51d570a57bc7a7289b345846fe7fab08738f397248f644d + sha256: "65ba4e86d2dc8563f626ed681354b980ef4cfb57fd68c4d7c3cb4fc3a27a4ea3" url: "https://pub.dev" source: hosted - version: "0.0.3" + version: "0.1.0" flutter: dependency: "direct main" description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index a95ef584..e1ad42b6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -49,7 +49,7 @@ dependencies: firebase_core: ^2.22.0 firebase_messaging: ^14.7.4 fl_chart: ^0.62.0 - fl_shared_link: ^0.0.3 + fl_shared_link: ^0.1.0 flutter: sdk: flutter flutter_app_update: