From 10c10b8717dd088c6f9699cda0c2b3558e3dbf1f Mon Sep 17 00:00:00 2001 From: iampawan Date: Fri, 14 Jan 2022 15:46:24 +0530 Subject: [PATCH] Fixed #132 --- example/lib/new/demo_list.dart | 8 ++++---- lib/src/flutter/common/velocity_round.dart | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/example/lib/new/demo_list.dart b/example/lib/new/demo_list.dart index d1829c8..3f2fea0 100644 --- a/example/lib/new/demo_list.dart +++ b/example/lib/new/demo_list.dart @@ -119,22 +119,22 @@ class DemoList extends StatelessWidget { children: [ "Hello" .text - .yellow500 + .yellow100 .make() .box .p8 .rounded - .lime200 + .lime800 .alignCenter .withConstraints( const BoxConstraints(maxWidth: 100, minWidth: 50)) .make() .badge( size: 20, - count: 200, + count: 1, limit: false, color: Colors.black, - type: VxBadgeType.round) + type: VxBadgeType.ellipse) .onInkTap(() { // Show Toast context.showToast( diff --git a/lib/src/flutter/common/velocity_round.dart b/lib/src/flutter/common/velocity_round.dart index 9c7ccca..54a99e0 100644 --- a/lib/src/flutter/common/velocity_round.dart +++ b/lib/src/flutter/common/velocity_round.dart @@ -60,7 +60,8 @@ class VxRound extends StatelessWidget { final double tempSize = size ?? 16; final Radius radius = Radius.circular(tempSize / 2); return Container( - height: tempSize, + constraints: BoxConstraints( + maxHeight: tempSize, minHeight: tempSize, minWidth: tempSize), padding: const EdgeInsets.symmetric(horizontal: 4), decoration: BoxDecoration( color: color ?? Theme.of(context).primaryColorLight,