forked from lxm_flutter/FlutterUnit
回退数据库
This commit is contained in:
Binary file not shown.
@@ -63,7 +63,8 @@ class WidgetModel extends Equatable {
|
||||
);
|
||||
}
|
||||
|
||||
static convertImage(String image) {
|
||||
static AssetImage convertImage(String image) {
|
||||
if(image==null) return null;
|
||||
return image.isEmpty ? null : AssetImage(image);
|
||||
}
|
||||
|
||||
@@ -73,7 +74,7 @@ class WidgetModel extends Equatable {
|
||||
}
|
||||
|
||||
static List<int> formatLinkTo(String links) {
|
||||
if(links.isEmpty){
|
||||
if(links!=null||links.isEmpty){
|
||||
return [];
|
||||
}
|
||||
if(!links.contains(',')){
|
||||
|
||||
@@ -54,9 +54,9 @@ class AppStorage {
|
||||
setupDatabase();
|
||||
var databasesPath = await getApplicationSupportDirectory();
|
||||
var dbPath = path.join(databasesPath.path, "flutter.db");
|
||||
|
||||
const bool inProduction = const bool.fromEnvironment("dart.vm.product");
|
||||
var file = File(dbPath);
|
||||
if (!file.existsSync()) {
|
||||
if (!file.existsSync()||!inProduction) {
|
||||
await Directory(path.dirname(dbPath)).create(recursive: true);
|
||||
ByteData data = await rootBundle.load("assets/flutter.db");
|
||||
List<int> bytes =
|
||||
|
||||
@@ -7,7 +7,7 @@ packages:
|
||||
name: async
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "2.7.0"
|
||||
version: "2.8.1"
|
||||
bloc:
|
||||
dependency: transitive
|
||||
description:
|
||||
@@ -141,7 +141,7 @@ packages:
|
||||
name: meta
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "1.4.0"
|
||||
version: "1.7.0"
|
||||
mime:
|
||||
dependency: transitive
|
||||
description:
|
||||
@@ -363,7 +363,7 @@ packages:
|
||||
name: test_api
|
||||
url: "https://pub.flutter-io.cn"
|
||||
source: hosted
|
||||
version: "0.4.1"
|
||||
version: "0.4.2"
|
||||
toggle_rotate:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
||||
@@ -91,6 +91,7 @@ add_custom_command(
|
||||
${FLUTTER_TOOL_ENVIRONMENT}
|
||||
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
|
||||
windows-x64 $<CONFIG>
|
||||
VERBATIM
|
||||
)
|
||||
add_custom_target(flutter_assemble DEPENDS
|
||||
"${FLUTTER_LIBRARY}"
|
||||
|
||||
@@ -2,11 +2,16 @@
|
||||
// Generated file. Do not edit.
|
||||
//
|
||||
|
||||
// clang-format off
|
||||
|
||||
#include "generated_plugin_registrant.h"
|
||||
|
||||
#include <path_provider_fde/path_provider_plugin.h>
|
||||
#include <url_launcher_windows/url_launcher_plugin.h>
|
||||
|
||||
void RegisterPlugins(flutter::PluginRegistry* registry) {
|
||||
PathProviderPluginRegisterWithRegistrar(
|
||||
registry->GetRegistrarForPlugin("PathProviderPlugin"));
|
||||
UrlLauncherPluginRegisterWithRegistrar(
|
||||
registry->GetRegistrarForPlugin("UrlLauncherPlugin"));
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// Generated file. Do not edit.
|
||||
//
|
||||
|
||||
// clang-format off
|
||||
|
||||
#ifndef GENERATED_PLUGIN_REGISTRANT_
|
||||
#define GENERATED_PLUGIN_REGISTRANT_
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
list(APPEND FLUTTER_PLUGIN_LIST
|
||||
path_provider_fde
|
||||
url_launcher_windows
|
||||
)
|
||||
|
||||
set(PLUGIN_BUNDLED_LIBRARIES)
|
||||
|
||||
Reference in New Issue
Block a user