Skip to content

Commit

Permalink
Ajustar a decoração do Container na HeaderBar para condicionalmente a…
Browse files Browse the repository at this point in the history
…plicar estilo baseado no perfil do produto
  • Loading branch information
Polabiel committed Sep 16, 2024
1 parent 3842f55 commit a0054b9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/src/components/header_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,12 @@ class _HeaderBarState extends State<HeaderBarState> {
right: 0,
child: Container(
padding: EdgeInsets.all(0.7),
decoration: BoxDecoration(
color: Colors.red,
borderRadius: BorderRadius.circular(6),
),
decoration: (profile?.product == true)
? BoxDecoration(
color: Colors.red,
borderRadius: BorderRadius.circular(6),
)
: null,
constraints: BoxConstraints(
minWidth: 12,
minHeight: 12,
Expand Down

0 comments on commit a0054b9

Please sign in to comment.