Fix AuthorContainer layout issue

This commit is contained in:
franzap
2024-12-14 18:15:11 -03:00
parent 1731b0880c
commit f27f46f26d
2 changed files with 8 additions and 4 deletions
+7 -3
View File
@@ -7,7 +7,7 @@ import 'package:zapstore/widgets/rounded_image.dart';
class AuthorContainer extends StatelessWidget {
final User user;
final String beforeText;
final String afterText;
final String? afterText;
final bool oneLine;
final double size;
@@ -15,7 +15,7 @@ class AuthorContainer extends StatelessWidget {
super.key,
required this.user,
this.beforeText = 'Signed by',
this.afterText = '',
this.afterText,
this.oneLine = true,
this.size = 14,
});
@@ -49,7 +49,11 @@ class AuthorContainer extends StatelessWidget {
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
Text(afterText),
if (afterText != null)
Text(
afterText!,
style: TextStyle(fontSize: 12, fontWeight: FontWeight.bold),
),
],
)
],
+1 -1
View File
@@ -49,7 +49,7 @@ class SignerAndDeveloperRow extends ConsumerWidget {
settingsState.model!.trustedUsers
.contains(app.signer.value!)
? '(trusted)'
: '',
: null,
),
],
),