realm / realm-dart

Realm is a mobile database: a replacement for SQLite & ORMs.
Apache License 2.0
757 stars 85 forks source link

Incompatibility with fluent_ui package #1760

Open IvanMao714 opened 1 month ago

IvanMao714 commented 1 month ago

What happened?

There is an incompatibility issue between the realm package and the fluent_ui package when used together in the same project. 屏幕截图 2024-07-24 165542

Repro steps

  1. Create a new Flutter project.
  2. Add realm version 3.3.0 or higher to pubspec.yaml.
  3. Add fluent_ui version 4.4.0 to pubspec.yaml.
  4. Run flutter pub get.

Version

'>=3.3.3 <4.0.0'

What Atlas Services are you using?

Local Database only

What type of application is this?

Flutter Application

Client OS and version

win11

Code snippets

No response

Stacktrace of the exception/crash you're getting

No response

Relevant log output

No response

sync-by-unito[bot] commented 1 month ago

➤ PM Bot commented:

Jira ticket: RDART-1079

nielsenko commented 1 month ago

Hi @IvanMao714

Using Flultter 3.22.3 (latest stable per today), realm 3.3.0, and fluent_ui 4.9.0 resolves fine for me.

Trying to force flutter_ui 4.4.0 will yield the error:

Because fluent_ui >=3.10.0 <4.6.0 depends on flutter_localizations from sdk which depends on intl 0.19.0, fluent_ui >=3.10.0 <4.6.0 requires intl 0.19.0.
So, because fluent_io_plus_realm depends on fluent_ui 4.4.0 which depends on intl ^0.17.0, version solving failed.

No realm needed. Trying to use just fluent_ui pinned to 4.4.0 with latest stable flutter (3.22.2) gives the same error.