Improve ShapeDecoration performance. (#108648)

This commit is contained in:
Bernardo Ferrari
2022-08-17 16:25:06 -03:00
committed by GitHub
parent 0de1ca2744
commit 01f3fca3f5
22 changed files with 293 additions and 120 deletions

View File

@@ -324,9 +324,9 @@ class MiniIconWithText extends StatelessWidget {
child: Container(
width: 16.0,
height: 16.0,
decoration: BoxDecoration(
decoration: ShapeDecoration(
color: Theme.of(context).primaryColor,
shape: BoxShape.circle,
shape: const CircleBorder(),
),
child: Icon(icon, color: Colors.white, size: 12.0),
),