Arthur Miranda

Results 12 comments of Arthur Miranda

Example here: 1. Clone it https://github.com/arthurbcd/type_lint_issue 2. After `pub get` add the line on the top of `main.dart`: ```dart // ignore_for_file: type=lint ``` The lints stay even after it adding...

It's been 2 years. What happened? Can we merge it? 😄

I agree with @caseycrogers. I would see the stale problem as expected error. It's to the developer to choose which context he wants to wire in. The stale problem could...

@clragon The Navigator is a smart solution, as the InheritedWidget will be scoped to the it. Thats what I actually do, making it possible to easily scope providers and access...

Recase is highly used right now. https://pub.dev/packages/recase. Let's just use the same convention that most people are used to. Can we just export it like @passsy said?

> > For eg: we can have: GoAction, PushAction, NoAction. I think that is enough to handle this issue > > > > If we want to go this route,...

I believe the void redirect(context, state, router) is simpler to understand. We would simply use the same API we already use to navigate. No extra booleans, "stopProgating" or other complicated...

Imagine you have manage a state like table sorts. Today we have to do something like this: ```dart final classes = isAscending ? context.watch().classes.sortedBy( (clazz) => switch (sortType) { ClassSort.name...

Thank you for the detailed explanation and the alternative approach using sortedWith/Comparator.reverse(). I appreciate the efficiency and elegance of this method, and I understand it aligns well with functional programming...

Refined parameter naming and documentation for consistency with Flutter conventions. ```dart SortedList sortedBy( Comparable Function(E element) selector, { bool ascending = true, }) { ``` ```dart expect([4, 2, 1, 3].sortedBy((it)...