Baseflow / Baseflow/flutter_cached_network_image

No implementation found for method getDatabasesPath

Open
#866 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
2.6k
Forks
731
Avg merge
3d 9h
Merged PRs (30d)
1

Description

## 🐛 Bug Report

I am trying to use this code

CachedNetworkImage(
imageUrl: "http://via.placeholder.com/200x150",
imageBuilder: (context, imageProvider) => Container(
decoration: BoxDecoration(
image: DecorationImage(
image: imageProvider,
fit: BoxFit.cover,
colorFilter:
ColorFilter.mode(Colors.red, BlendMode.colorBurn)),
),
),
placeholder: (context, url) => CircularProgressIndicator(),
errorWidget: (context, url, error) => Icon(Icons.error),
),

but I am getting this error
![erro](https://github.com/Baseflow/flutter_cached_network_image/assets/49829193/37515c7f-ef47-4f10-8565-53456b34395f)

E/flutter ( 8610): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method getDatabasesPath on channel com.tekartik.sqflite)
E/flutter ( 8610): #0 MethodChannel._invokeMethod
platform_channel.dart:308
E/flutter ( 8610):
E/flutter ( 8610): #1 invokeMethod
sqflite_impl.dart:16
E/flutter ( 8610):
E/flutter ( 8610): #2 wrapDatabaseException
exception_impl.dart:7
E/flutter ( 8610):
E/flutter ( 8610): #3 SqfliteDatabaseFactoryMixin.getDatabasesPath
factory_mixin.dart:177
E/flutter ( 8610):

### Expected behavior

### Reproduction steps

### Configuration
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.6, on Microsoft Windows [versÆo 10.0.22621.1992], locale en-US)
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop for Windows (Visual Studio Build Tools 2019 16.11.27)
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.81.0)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!

**Version:**
Flutter 3.10.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f468f3366c (4 weeks ago) • 2023-07-12 15:19:05 -0700
Engine • revision cdbeda788a
Tools • Dart 3.0.6 • DevTools 2.23.1

**Platform:**
- [ ] :iphone: iOS
- [x] :robot: Android

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.