ublock list management initial
This commit is contained in:
@@ -26,6 +26,7 @@ class UriBreadcrumb extends StatelessWidget {
|
||||
final Uri uri;
|
||||
final Widget? icon;
|
||||
final TextStyle? style;
|
||||
final bool showHttpScheme;
|
||||
final void Function()? onTooltipTriggered;
|
||||
|
||||
const UriBreadcrumb({
|
||||
@@ -33,6 +34,7 @@ class UriBreadcrumb extends StatelessWidget {
|
||||
required this.uri,
|
||||
this.icon,
|
||||
this.style,
|
||||
this.showHttpScheme = true,
|
||||
this.onTooltipTriggered,
|
||||
});
|
||||
|
||||
@@ -56,6 +58,22 @@ class UriBreadcrumb extends StatelessWidget {
|
||||
children: [
|
||||
?icon,
|
||||
if (icon != null) const SizedBox(width: 6),
|
||||
if (!uri.isHttpOrHttps || showHttpScheme) ...[
|
||||
Text(
|
||||
uri.scheme,
|
||||
maxLines: 1,
|
||||
softWrap: false,
|
||||
overflow: TextOverflow.visible,
|
||||
style: const TextStyle(fontWeight: FontWeight.bold),
|
||||
),
|
||||
const Text(
|
||||
' › ',
|
||||
maxLines: 1,
|
||||
softWrap: false,
|
||||
overflow: TextOverflow.visible,
|
||||
style: TextStyle(fontWeight: FontWeight.bold),
|
||||
),
|
||||
],
|
||||
Text(
|
||||
uri.authority,
|
||||
maxLines: 1,
|
||||
|
||||
@@ -27,6 +27,7 @@ class UrlListTile extends StatelessWidget {
|
||||
final Widget? leading;
|
||||
final Widget? trailing;
|
||||
final Color? borderColor;
|
||||
final bool showHttpScheme;
|
||||
final VoidCallback? onTap;
|
||||
|
||||
const UrlListTile({
|
||||
@@ -36,6 +37,7 @@ class UrlListTile extends StatelessWidget {
|
||||
this.leading,
|
||||
this.trailing,
|
||||
this.borderColor,
|
||||
this.showHttpScheme = true,
|
||||
this.onTap,
|
||||
});
|
||||
|
||||
@@ -90,6 +92,7 @@ class UrlListTile extends StatelessWidget {
|
||||
const SizedBox(height: 3.0),
|
||||
UriBreadcrumb(
|
||||
uri: uri,
|
||||
showHttpScheme: showHttpScheme,
|
||||
style: textTheme.bodySmall?.copyWith(
|
||||
color: colorScheme.onSurfaceVariant,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user