This commit is contained in:
@@ -21,7 +21,7 @@ const logonWidth = 300.0;
|
||||
const outlineAlpha = 0.15;
|
||||
const padding = 16.0;
|
||||
const paddingSmall = padding / 2.0;
|
||||
const primaryAlpha = 0.25;
|
||||
const primaryAlpha = 0.20;
|
||||
const boxShadowAlpha = 0.20;
|
||||
const primarySurfaceAlpha = 92.0;
|
||||
const protocolTypeList = ['http', 'https'];
|
||||
|
@@ -50,32 +50,7 @@ class _MountWidgetState extends State<MountWidget>
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
child: Stack(
|
||||
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(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(constants.padding),
|
||||
child: Consumer<Mount>(
|
||||
builder: (context, Mount mount, _) {
|
||||
@@ -101,10 +76,7 @@ class _MountWidgetState extends State<MountWidget>
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
SelectableText(
|
||||
mount.provider,
|
||||
style: titleStyle,
|
||||
),
|
||||
SelectableText(mount.provider, style: titleStyle),
|
||||
SelectableText(
|
||||
'Name • ${formatMountName(mount.type, mount.name)}',
|
||||
style: subStyle,
|
||||
@@ -131,8 +103,7 @@ class _MountWidgetState extends State<MountWidget>
|
||||
_editEnabled = false;
|
||||
});
|
||||
|
||||
final available = await mount
|
||||
.getAvailableLocations();
|
||||
final available = await mount.getAvailableLocations();
|
||||
|
||||
if (!mounted) {
|
||||
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