Skip to content

☂️ Upstream Dart issues affecting Zulip #1079

Open
@gnprice

Description

@gnprice

This tracking issue collects notes on potential work in Dart upstream that would benefit the (new) Zulip mobile app. See also:

Some of these are much more important to us than others. They're organized by where the work would happen, not by importance.

Dart standard library

Native assets / FFI

dart:convert / JSON decoding

dart pub

  • (TODO upstream issue)
    Running just dart pub get (or flutter pub get) can cause dependencies in pubspec.lock to change, in particular for the "supporting libraries" like collection that are bundled in the Flutter SDK. That's perhaps OK in itself (modulo the desire for pinning Flutter, listed separately above) — but it should really print some kind of message explaining why. I (Greg) was confused by this for months, and I bet it confuses lots of other Flutter developers too:
    pubspec.lock sometimes doesn't work as a lockfile #85

Dart linter

package:http

(For issues in this section, the right answer may be to abandon the pure-Dart package:http in favor of package:cronet_http on Android and package:cupertino_http on iOS. See #461 (comment) . In particular it seems like we've run into a couple of issues where the upstream answer for missing features in package:http is that package:http is not the future and people should use those packages instead.)

  • (TODO upstream issue)
    package:http should respect HTTP cache-control headers, at least optionally.
    Make use of caching headers on server emoji data #950

  • (TODO upstream issue)
    package:http should have the option to trust additional CAs.

    • Then ideally the Flutter embedding for Android would gain the ability to read the app's "network security config" XML file and respect a setting there by making package:http trust any additional CAs the user has added in system settings.
    • We would set that setting in our Android "network security config"; or pending that Flutter feature, would use the package:http option directly.
    • Trust user-added CAs on Android #461
      Trust user-added CAs on Android #461 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamWould benefit from work in Flutter or another upstream

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions