This commit is contained in:
parent
c52c919607
commit
6137b69bd3
@ -2,8 +2,10 @@ import 'package:flutter/material.dart' show GlobalKey, NavigatorState;
|
|||||||
import 'package:sodium_libs/sodium_libs.dart';
|
import 'package:sodium_libs/sodium_libs.dart';
|
||||||
|
|
||||||
const addMountTitle = 'Add New Mount';
|
const addMountTitle = 'Add New Mount';
|
||||||
|
const appLogonTitle = 'Repertory Portal Login';
|
||||||
const appSettingsTitle = 'Portal Settings';
|
const appSettingsTitle = 'Portal Settings';
|
||||||
const appTitle = 'Repertory Management Portal';
|
const appTitle = 'Repertory Management Portal';
|
||||||
|
const logonWidth = 300.0;
|
||||||
const databaseTypeList = ['rocksdb', 'sqlite'];
|
const databaseTypeList = ['rocksdb', 'sqlite'];
|
||||||
const downloadTypeList = ['default', 'direct', 'ring_buffer'];
|
const downloadTypeList = ['default', 'direct', 'ring_buffer'];
|
||||||
const eventLevelList = ['critical', 'error', 'warn', 'info', 'debug', 'trace'];
|
const eventLevelList = ['critical', 'error', 'warn', 'info', 'debug', 'trace'];
|
||||||
|
@ -131,9 +131,11 @@ class _AddMountScreenState extends State<AddMountScreen> {
|
|||||||
),
|
),
|
||||||
if (_mount != null) const SizedBox(height: constants.padding),
|
if (_mount != null) const SizedBox(height: constants.padding),
|
||||||
if (_mount != null)
|
if (_mount != null)
|
||||||
Builder(
|
Row(
|
||||||
builder: (context) {
|
children: [
|
||||||
return ElevatedButton.icon(
|
ElevatedButton.icon(
|
||||||
|
label: const Text('Add'),
|
||||||
|
icon: const Icon(Icons.add),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
final mountList = Provider.of<MountList>(context);
|
final mountList = Provider.of<MountList>(context);
|
||||||
|
|
||||||
@ -186,10 +188,16 @@ class _AddMountScreenState extends State<AddMountScreen> {
|
|||||||
|
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
label: const Text('Add'),
|
),
|
||||||
icon: const Icon(Icons.add),
|
if (_mountType == 'Sia' || _mountType == 'S3') ...[
|
||||||
);
|
const SizedBox(width: constants.padding),
|
||||||
},
|
ElevatedButton.icon(
|
||||||
|
label: const Text('Test'),
|
||||||
|
icon: const Icon(Icons.check),
|
||||||
|
onPressed: () async {},
|
||||||
|
),
|
||||||
|
],
|
||||||
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
@ -35,14 +35,14 @@ class _AuthScreenState extends State<AuthScreen> {
|
|||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(constants.padding),
|
padding: const EdgeInsets.all(constants.padding),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: 300,
|
width: constants.logonWidth,
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'Logon to Repertory Portal',
|
constants.appLogonTitle,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: Theme.of(context).textTheme.titleLarge,
|
style: Theme.of(context).textTheme.titleLarge,
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user