mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
More linting work
This commit is contained in:
parent
c1152ee286
commit
ad0cc36540
50 changed files with 904 additions and 907 deletions
|
|
@ -2,8 +2,8 @@
|
|||
/*
|
||||
* Class for InvenTree user / login details
|
||||
*/
|
||||
import 'package:sembast/sembast.dart';
|
||||
import 'preferences.dart';
|
||||
import "package:sembast/sembast.dart";
|
||||
import "preferences.dart";
|
||||
|
||||
class UserProfile {
|
||||
|
||||
|
|
@ -38,10 +38,10 @@ class UserProfile {
|
|||
|
||||
factory UserProfile.fromJson(int key, Map<String, dynamic> json, bool isSelected) => UserProfile(
|
||||
key: key,
|
||||
name: json['name'] as String,
|
||||
server: json['server'] as String,
|
||||
username: json['username'] as String,
|
||||
password: json['password'] as String,
|
||||
name: json["name"] as String,
|
||||
server: json["server"] as String,
|
||||
username: json["username"] as String,
|
||||
password: json["password"] as String,
|
||||
selected: isSelected,
|
||||
);
|
||||
|
||||
|
|
@ -70,7 +70,7 @@ class UserProfileDBManager {
|
|||
|
||||
final profiles = await store.find(await _db, finder: finder);
|
||||
|
||||
return profiles.length > 0;
|
||||
return profiles.isNotEmpty;
|
||||
}
|
||||
|
||||
Future<void> addProfile(UserProfile profile) async {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue