Coder Social home page Coder Social logo

realm / realm-dart-samples Goto Github PK

View Code? Open in Web Editor NEW
69.0 69.0 23.0 17.42 MB

Samples for Realm Flutter and Realm Dart SDKs

Kotlin 0.20% Swift 2.09% Objective-C 0.06% Dart 30.15% Ruby 4.13% CMake 27.79% C++ 32.30% C 2.16% JavaScript 1.12%
dart database flutter-examples mobile mobile-da realm

realm-dart-samples's People

Contributors

blagoev avatar desistefanova avatar nielsenko avatar realm-ci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

realm-dart-samples's Issues

Realm notifications are not working

I have cloned this repo and used the time_track example. The watch command doesn't update the console with added tasks, the realm.changes never notifies.

Running Mac OS Monterey 12.4

Encrypted realm example

Can someone forward me to some examples of using encrypted realm with more than 2 models in it.
Thank you.

I hope i am on right place

Support for Flutter version 2.2.x

Is there any plans to update this sample to run on the latest stable flutter version?

After cloning the repo and running the following in provider_shopper:

flutter pub get
flutter run

I get the following output:

iOS

Xcode build done.                                           22.7s
[VERBOSE-2:shell.cc(242)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
[VERBOSE-2:dart_isolate.cc(169)] Could not prepare isolate.
[VERBOSE-2:runtime_controller.cc(401)] Could not create root isolate.
[VERBOSE-2:shell.cc(571)] Could not launch engine with configuration.

Android

✓  Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk...                 3.1s
E/flutter (14643): [ERROR:flutter/shell/common/shell.cc(242)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
E/flutter (14643): [ERROR:flutter/runtime/dart_isolate.cc(169)] Could not prepare isolate.
E/flutter (14643): [ERROR:flutter/runtime/runtime_controller.cc(401)] Could not create root isolate.
E/flutter (14643): [ERROR:flutter/shell/common/shell.cc(571)] Could not launch engine with configuration.

Downgrading to v2.0.6 works, however I've not tested any other versions.

Environment

Flutter 2.2.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision d79295af24 (9 days ago) • 2021-06-11 08:56:01 -0700
Engine • revision 91c9fc8fe0
Tools • Dart 2.13.3

Complex query support

Hi, does the dart implementation of Realm support all the quering capabilities of other platforms (iOS, Android, etc)? For example could I find records in such a way:

  • where (object.startDate >= VALUE AND obj.endDate <= VALUES) OR (object.startDate is null)

Does this library currently support that level of querying capability? I realize we're still in BETA but the docs are rather lacking at the moment in regards to more complex examples. Unless I'm missing something =)

Thanks again for the great here!!

CMake Error at flutter/ephemeral/.plugin_symlinks/realm/windows/CMakeLists.txt:35 (execute_process)

Hello there,

I've tried to compile the provider_shopper sample code on windows but it yielded the following error:

` Launching lib\main.dart on Windows in debug mode...
CMake Error at flutter/ephemeral/.plugin_symlinks/realm/windows/CMakeLists.txt:35 (execute_process):
execute_process given unknown argument "COMMAND_ERROR_IS_FATAL".

Building Windows application...
Exception: Unable to generate build files `

Can anyone help me please?

Thanks

Provider_shopper fails to build / deploy to android emulator

I have the latest android studio and flutter:

(base) jamesclarke@Jamess-Air provider_shopper % flutter --version
Flutter 3.10.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 9cd3d0d9ff (9 days ago) • 2023-05-23 20:57:28 -0700
Engine • revision 90fa3ae28f
Tools • Dart 3.0.2 • DevTools 2.23.1

base) jamesclarke@Jamess-Air provider_shopper % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.2, on macOS 13.3.1 22E772610a darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.78.2)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

Fresh clone of this repo and attempted to run provider_shopper on the android emulator but it's failing:
(base) jamesclarke@Jamess-Air provider_shopper % flutter run -d emulator-5554
Using hardware rendering with device sdk gphone64 arm64. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Realm binaries for [email protected] already downloaded
Realm install command finished.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugMainManifest'.

Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @37aa9fdc

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 7s
Running Gradle task 'assembleDebug'... 8.4s
Exception: Gradle task assembleDebug failed with exit code 1
(base) jamesclarke@Jamess-Air provider_shopper %

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.