This commit is contained in:
@@ -21,7 +21,7 @@ const logonWidth = 300.0;
|
|||||||
const outlineAlpha = 0.15;
|
const outlineAlpha = 0.15;
|
||||||
const padding = 16.0;
|
const padding = 16.0;
|
||||||
const paddingSmall = padding / 2.0;
|
const paddingSmall = padding / 2.0;
|
||||||
const primaryAlpha = 0.25;
|
const primaryAlpha = 0.20;
|
||||||
const boxShadowAlpha = 0.20;
|
const boxShadowAlpha = 0.20;
|
||||||
const primarySurfaceAlpha = 92.0;
|
const primarySurfaceAlpha = 92.0;
|
||||||
const protocolTypeList = ['http', 'https'];
|
const protocolTypeList = ['http', 'https'];
|
||||||
|
@@ -50,32 +50,7 @@ class _MountWidgetState extends State<MountWidget>
|
|||||||
width: 1,
|
width: 1,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: Stack(
|
child: Padding(
|
||||||
children: [
|
|
||||||
Positioned.fill(
|
|
||||||
child: Container(
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
borderRadius: BorderRadius.circular(
|
|
||||||
constants.borderRadiusSmall,
|
|
||||||
),
|
|
||||||
gradient: const LinearGradient(
|
|
||||||
begin: Alignment.topCenter,
|
|
||||||
end: Alignment.bottomCenter,
|
|
||||||
colors: constants.gradientColors2,
|
|
||||||
),
|
|
||||||
boxShadow: [
|
|
||||||
BoxShadow(
|
|
||||||
color: Colors.black.withValues(
|
|
||||||
alpha: constants.boxShadowAlpha,
|
|
||||||
),
|
|
||||||
blurRadius: constants.borderRadiusSmall,
|
|
||||||
offset: const Offset(0, constants.borderRadiusSmall),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Padding(
|
|
||||||
padding: const EdgeInsets.all(constants.padding),
|
padding: const EdgeInsets.all(constants.padding),
|
||||||
child: Consumer<Mount>(
|
child: Consumer<Mount>(
|
||||||
builder: (context, Mount mount, _) {
|
builder: (context, Mount mount, _) {
|
||||||
@@ -101,10 +76,7 @@ class _MountWidgetState extends State<MountWidget>
|
|||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
SelectableText(
|
SelectableText(mount.provider, style: titleStyle),
|
||||||
mount.provider,
|
|
||||||
style: titleStyle,
|
|
||||||
),
|
|
||||||
SelectableText(
|
SelectableText(
|
||||||
'Name • ${formatMountName(mount.type, mount.name)}',
|
'Name • ${formatMountName(mount.type, mount.name)}',
|
||||||
style: subStyle,
|
style: subStyle,
|
||||||
@@ -131,8 +103,7 @@ class _MountWidgetState extends State<MountWidget>
|
|||||||
_editEnabled = false;
|
_editEnabled = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
final available = await mount
|
final available = await mount.getAvailableLocations();
|
||||||
.getAvailableLocations();
|
|
||||||
|
|
||||||
if (!mounted) {
|
if (!mounted) {
|
||||||
setState(() {
|
setState(() {
|
||||||
@@ -175,21 +146,6 @@ class _MountWidgetState extends State<MountWidget>
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Positioned(
|
|
||||||
left: constants.padding,
|
|
||||||
right: constants.padding,
|
|
||||||
bottom: constants.padding - 1,
|
|
||||||
child: Container(
|
|
||||||
height: 1,
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
color: Theme.of(context).colorScheme.outlineVariant
|
|
||||||
.withValues(alpha: constants.outlineAlpha),
|
|
||||||
borderRadius: BorderRadius.circular(1),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user