Implemented settings, new scan, enhanced UI/UX
This commit is contained in:
@ -5,6 +5,7 @@ import 'package:flutter/cupertino.dart';
|
||||
|
||||
class LocalDocuFrameConfiguration {
|
||||
String host;
|
||||
String backendUrl;
|
||||
final String user;
|
||||
final String pass;
|
||||
final List<String> appNames;
|
||||
@ -15,6 +16,7 @@ class LocalDocuFrameConfiguration {
|
||||
required this.appKey,
|
||||
required this.appNames,
|
||||
required this.pass,
|
||||
required this.backendUrl,
|
||||
required this.user});
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
@ -22,6 +24,7 @@ class LocalDocuFrameConfiguration {
|
||||
"host": host,
|
||||
"user": user,
|
||||
"pass": pass,
|
||||
"backendUrl": backendUrl,
|
||||
"appNames": appNames,
|
||||
"appKey": appKey
|
||||
};
|
||||
@ -34,6 +37,7 @@ class LocalDocuFrameConfiguration {
|
||||
appNames: (getValueOrThrowIfNotPresent("appNames", json) as List)
|
||||
.cast<String>(),
|
||||
pass: getValueOrThrowIfNotPresent("pass", json),
|
||||
backendUrl: getValueOrThrowIfNotPresent("backendUrl", json),
|
||||
user: getValueOrThrowIfNotPresent("user", json));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user