Skip to content

layout explorer needs to surface exceptions triggered by disallowed flex layouts #1650

Description

@jacob314

For example, frequently main axis can't be set to a value other than center if textDirection is null as is often the case.

Activity

  1. albertusdev commented on Feb 25, 2020

    @albertusdev
    Contributor

    I did something hacky related to this issue in src/inspector/flutter/layout_explorer/flex/flex.dart:661 by removing CrossAxisAlignment.baseline from CrossAxisAlignment options because it will throw exceptions when baseline is null.

    If there are any additional pointers/ideas on how to solve this, I want to take this issue!

  2. jacob314 commented on Feb 27, 2020

    @jacob314
    ContributorAuthor

    maybe catch exceptions within the service extensions and send the exception back as a message that you then display in the UI as a toast?
    If you take this on, I would wait for #1682 to land as that CL makes it way easier to write the layout explorer service extensions as you get type checking and auto-complete!

  3. added this to the On Deck milestone on Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions