From 30676f50f5b40e245873d314c5fdb08035c68873 Mon Sep 17 00:00:00 2001 From: Alexandre Roux Date: Thu, 26 Sep 2024 11:41:55 +0200 Subject: [PATCH] fix lints --- sqflite_common_server/lib/src/sqflite_client.dart | 1 - sqflite_common_server/lib/src/sqflite_server.dart | 1 - sqflite_server_app/lib/page/main_page.dart | 2 +- sqflite_server_app/lib/src/prefs.dart | 4 ++-- sqflite_server_app/lib/src/test/server_main.dart | 2 +- sqflite_server_app/pubspec.yaml | 10 +++++----- 6 files changed, 9 insertions(+), 11 deletions(-) diff --git a/sqflite_common_server/lib/src/sqflite_client.dart b/sqflite_common_server/lib/src/sqflite_client.dart index 968c551..d662668 100644 --- a/sqflite_common_server/lib/src/sqflite_client.dart +++ b/sqflite_common_server/lib/src/sqflite_client.dart @@ -7,7 +7,6 @@ import 'package:sqflite_common_server/src/sqflite_server.dart'; import 'package:tekartik_common_utils/common_utils_import.dart' hide devPrint; import 'package:tekartik_web_socket_io/web_socket_io.dart'; -import 'import.dart'; class ServerInfo { bool? supportsWithoutRowId; diff --git a/sqflite_common_server/lib/src/sqflite_server.dart b/sqflite_common_server/lib/src/sqflite_server.dart index 209a89d..5756b1d 100644 --- a/sqflite_common_server/lib/src/sqflite_server.dart +++ b/sqflite_common_server/lib/src/sqflite_server.dart @@ -12,7 +12,6 @@ import 'package:sqflite_common_server/src/sqflite_import.dart'; import 'package:tekartik_common_utils/common_utils_import.dart' hide devPrint; import 'package:tekartik_web_socket_io/web_socket_io.dart'; -import 'import.dart'; const useNullResponseWorkaround = true; diff --git a/sqflite_server_app/lib/page/main_page.dart b/sqflite_server_app/lib/page/main_page.dart index 346f4ba..6cbb89c 100644 --- a/sqflite_server_app/lib/page/main_page.dart +++ b/sqflite_server_app/lib/page/main_page.dart @@ -199,7 +199,7 @@ class _SqfliteServerHomePageState extends State { try { await app.startServer(port, notifyCallback: (bool response, String method, Object? param) { - if (response == false) { + if (!response) { void logOperation(Map map) { var sql = (map['sql'] as String?)?.trim(); if (sql != null) { diff --git a/sqflite_server_app/lib/src/prefs.dart b/sqflite_server_app/lib/src/prefs.dart index 6d84b97..f673652 100644 --- a/sqflite_server_app/lib/src/prefs.dart +++ b/sqflite_server_app/lib/src/prefs.dart @@ -90,13 +90,13 @@ class Prefs { } Future setShowConsole(bool showConsole) async { - this.showConsole = showConsole != false; + this.showConsole = showConsole; var intValue = this.showConsole ? 1 : 0; await _setIntValue('showConsole', intValue); } Future setAutoStart(bool autoStart) async { - this.autoStart = autoStart == true; + this.autoStart = autoStart; var intValue = this.autoStart ? 1 : 0; await _setIntValue('autoStart', intValue); } diff --git a/sqflite_server_app/lib/src/test/server_main.dart b/sqflite_server_app/lib/src/test/server_main.dart index de6a5e3..3ff0261 100644 --- a/sqflite_server_app/lib/src/test/server_main.dart +++ b/sqflite_server_app/lib/src/test/server_main.dart @@ -1,6 +1,6 @@ +import 'package:dev_build/menu/menu.dart'; import 'package:sqflite_common_server/sqflite_server.dart'; import 'package:sqflite_server_app/main.dart'; -import 'package:tekartik_test_menu/test.dart'; int defaultPort = sqfliteServerDefaultPort; diff --git a/sqflite_server_app/pubspec.yaml b/sqflite_server_app/pubspec.yaml index ce1419c..d69c413 100644 --- a/sqflite_server_app/pubspec.yaml +++ b/sqflite_server_app/pubspec.yaml @@ -48,16 +48,16 @@ dependencies: sqflite_common_ffi: sqflite_common: path: -dev_dependencies: - process_run: - flutter_test: - sdk: flutter tekartik_test_menu_flutter: git: url: https://github.com/tekartik/test_menu_flutter ref: dart3a path: test_menu_flutter - version: '>=0.2.4' + +dev_dependencies: + process_run: + flutter_test: + sdk: flutter flutter_launcher_icons: ">=0.6.1" dev_build: tekartik_lints_flutter: