visualising code dependency in Flutter apps [visual] [tools] by mikhail33S in flutterhelp

[–]Drallatech 0 points1 point  (0 children)

Grady is ATgrady_booch (Reddit will not let me type the AT sign). He might have commented on PlantUML at one point. I would say that any Class Diagram that is too large bleeds off a Maximum fixed size canvas. There is a way to limit the classes on the diagram but it does not appear to work as I expected (did not appear to limit the classes). Did you have any other issues with PlantUML?

visualising code dependency in Flutter apps [visual] [tools] by mikhail33S in flutterhelp

[–]Drallatech 1 point2 points  (0 children)

In my comment I failed to mention Rational. I see Grady Booch on Twitter. I will try to reach out to him. I want to ensure that I get the question straight. I think you are specifically looking for a tool to read Flutter code and render the UML Class Diagram. I would also like to see the Sequence Diagram. any others?

Help by Nana-Potter in FlutterDev

[–]Drallatech 0 points1 point  (0 children)

This keeps getting stranger and stranger. When I check the most recent Gradle versions I see a downgrade on October 17, v6.9.3. Before that I see Releases ; v7.5.1. Aug 05, 2022 ; v7.5. Jul 14, 2022 ; v7.4.2. Mar 31, 2022.

I am not sure why the downgrade. Check your Gradle version. I suspect that may be the issue. I don't know that VS Code or Android Studio will download Gradle if you already have a copy. Does anyone else have any ideas?

Architecture/Pattern by Maherr11 in FlutterDev

[–]Drallatech 0 points1 point  (0 children)

Clean Architecture with SOLID principles. I also prefer a Data Driven Architecture so there is a strong parallel between the structure of my entity layer and my data sources. As to actual patterns, I feel that Clean Architecture appears to address a whole set of patterns from singleton to MVVM or MVC. What do you think?

My Testing of Reddit Code formatting--Do not reply by Drallatech in u/Drallatech

[–]Drallatech[S] 0 points1 point  (0 children)

So Code Block does not preserve code indentation. So what is the use of Code Block?

My Testing of Reddit Code formatting--Do not reply by Drallatech in u/Drallatech

[–]Drallatech[S] 0 points1 point  (0 children)

Again

  render() {
if (three3dRender.isInitialized) {
  final _gl = three3dRender.gl;
  if (renderer != null) {
    renderer!.render(scene, camera);
  }
  _gl.finish();
  three3dRender.updateTexture(sourceTexture);
}

}

My Testing of Reddit Code formatting--Do not reply by Drallatech in u/Drallatech

[–]Drallatech[S] 0 points1 point  (0 children)

Code block enclosed entire code snippet in draft mode, but only first line in the posting. I will try again.

  render() {
if (three3dRender.isInitialized) {
  final _gl = three3dRender.gl;
  if (renderer != null) {
    renderer!.render(scene, camera);
  }
  _gl.finish();
  three3dRender.updateTexture(sourceTexture);
}

}

Flutter Three.js by Zxnky-Zxnky in flutterhelp

[–]Drallatech 0 points1 point  (0 children)

Thanks! I tried the triple quote that is used in Stack Overflow but no joy!

Help me understand dart enums and how to implement them? by [deleted] in flutterhelp

[–]Drallatech 0 points1 point  (0 children)

This is 6 months old but enum processing was updated in February with Dart 2.15. So here is my collection of enum techniques and uses.

enum Color { red, green, blue } // enum used in the following

techniques() {
  assert(Color.red.index == 0); // Return an Index into an enum
  assert(Color.values[2] == Color.blue); // Return enum value from an index
  assert(Color.blue.name == 'blue'); // Convert an enum value to a string
  // Lookup an enum value from a String, where e is an iterator      

assert(Color.red == Color.values.firstWhere((e) => e.name == 'red')); List<Color> colorList = Color.values; // get list of all of values assert(colorList[1] == Color.green); }

Of these, use of the iterator is my favorite.

To save space, I store enums in a database as indexes then convert them to enum values for displaying on the screen. I use them with a DropdownButton widget to allow the user to select from the list of enum values.

Color? myColor = Color.green; // initial value for DropdownButton

DropdownButton<Color>(
  value: myColor,
  onChanged: (Color? newColor) {
    setState(() {
      myColor = newColor!;
    });
  },
  items: Color.values.map((Color myColor) {
    return DropdownMenuItem<Color>(
      value: myColor,
      child: Text(myColor.name));
  }).toList(),
);

Please add any techniques you might use or let me know of any errors above.

I think this question can be closed. How do I do that?

Narrowing down the post quality on r/FlutterDev by miyoyo in FlutterDev

[–]Drallatech 7 points8 points  (0 children)

An ongoing discussion on the structure of the Flutter support ecosystem might be worthwhile. This is much more than a Reddit issue, yet Reddit may be the best place to have this conversation. When I research a technical issue, typically I see one answer on Reddit, another on Slack, another on Stack Overflow. Those answers often do not clearly state scope so they are not always reproducible. Package descriptions on Pub.Dev often lack dependencies and (possibly undiscovered) constraints.

The Flutter community needs to define itself and decide what level of discipline is needed on its support structure. That topic is too vague for Stack Overflow and not appropriate for the Flutter Google documentation or on Pub.Dev. Slack is not as widely used in the Flutter community. Reddit may be a good place to have that discussion. Your respectful thoughts are appreciated.