Change gradient direction, give icon background circle (#3359)
Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>
This commit is contained in:
parent
f50f202c03
commit
9bebe88b96
1 changed files with 12 additions and 4 deletions
|
|
@ -199,8 +199,8 @@ class MorphTagChip extends StatelessWidget {
|
|||
begin: Alignment.centerLeft,
|
||||
end: Alignment.centerRight,
|
||||
colors: <Color>[
|
||||
Colors.transparent,
|
||||
constructAnalytics.lemmaCategory.color(context),
|
||||
Colors.transparent,
|
||||
],
|
||||
)
|
||||
: null,
|
||||
|
|
@ -218,9 +218,17 @@ class MorphTagChip extends StatelessWidget {
|
|||
width: 28.0,
|
||||
height: 28.0,
|
||||
child: unlocked
|
||||
? MorphIcon(
|
||||
morphFeature: feature,
|
||||
morphTag: morphTag,
|
||||
? IconButton.filled(
|
||||
style: IconButton.styleFrom(
|
||||
backgroundColor:
|
||||
theme.colorScheme.surface.withAlpha(180),
|
||||
),
|
||||
padding: const EdgeInsets.all(4),
|
||||
onPressed: () => {},
|
||||
icon: MorphIcon(
|
||||
morphFeature: feature,
|
||||
morphTag: morphTag,
|
||||
),
|
||||
)
|
||||
: const Icon(
|
||||
Icons.lock,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue