Skip to content

Commit

Permalink
Fixed iampawan#132
Browse files Browse the repository at this point in the history
  • Loading branch information
iampawan committed Jan 14, 2022
1 parent 29c90e6 commit 10c10b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions example/lib/new/demo_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 2 additions & 1 deletion lib/src/flutter/common/velocity_round.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 10c10b8

Please sign in to comment.