feat(studio): show module origin store ('from <store>')
StoreItem gains source (mapped from StoreEntry.source); the store grid shows a 'from <store>' label for operator-added stores (bundled seed unlabelled). Foundation for grouping by store. EN+DE l10n. Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
255348c062
commit
27cf7e8382
7 changed files with 44 additions and 0 deletions
|
|
@ -1930,6 +1930,19 @@ class _StoreCardState extends State<_StoreCard> {
|
|||
color: theme.colorScheme.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
// Origin store ("from <store>") — only for
|
||||
// operator-added stores; the built-in seed
|
||||
// ("bundled") needs no label.
|
||||
if (item.source.isNotEmpty &&
|
||||
item.source != 'bundled')
|
||||
Text(
|
||||
l.storeFromSource(item.source),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: theme.textTheme.labelSmall?.copyWith(
|
||||
color: theme.colorScheme.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue