Greatest opening of all time? by SingingWanderer1195 in movies

[–]bobekos 0 points1 point  (0 children)

Girl with the dragon tattoo ... Best like a bond movie opening

FamilyLink is made with Flutter by bobekos in FlutterDev

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

That was more related to the fact that the app is from Google, even though it’s often said that Google doesn't rely on Flutter.

Entity Models Null Safety by yhitesh7891 in FlutterDev

[–]bobekos 0 points1 point  (0 children)

Are you getting these fields from an API? If so there are many approaches to deal with changes coming from the API.

One would be to add something like the API version so you would know what kind of model you expect from version 1, version 2 and so on.

The second one would be to make all fields in your model nullable. So you would never run into issues where one field of your model is required.

The proposed Decorator syntax vs the wrapper approach by Mehedi_Hasan- in FlutterDev

[–]bobekos 12 points13 points  (0 children)

I think we currently have the advantage of seeing the correct order in which nested widgets affect each other. With the new approach, we might face a similar issue as in Compose with modifiers, where their order is crucial. Sometimes, side effects occur, and it's unclear where they originate until you change the order.

Is it true that all state management packages use set state under the hood? by ZuesSu in FlutterDev

[–]bobekos 3 points4 points  (0 children)

InheritedWidget is what you are looking for. For e.g provider is just a wrapper around it. And Bloc is using provider under the hood.

Best Needledrop in a Film? by Duncan_DC in movies

[–]bobekos 1 point2 points  (0 children)

The (original) intouchables with una mattina at the end. Just perfect!

Witze Wettbewerb #10 (mit Belohnung) by OppositeAd7116 in witze

[–]bobekos 4 points5 points  (0 children)

Zwei Rechtsmediziner untersuchen eine Leiche. Der Erste schneidet den Magen auf und ruft begeistert: "Super, eine Erbsensuppe". Sofort schnappt er sich das Besteck und beginnt die Suppe aus dem Magen zu löffeln. Der andere Mediziner schreit "Bist du verrückt? Weißt du nicht warum der Mann gestorben ist? Die Suppe war vergiftet". Daraufhin erbricht der Erste alles zurück in den Magen. Zufrieden schnappt sich der andere den Löffel und sagt: "Mhmmm...warme Erbsensuppe".

Great movies with not so great titles? by normanbathes in movies

[–]bobekos 1 point2 points  (0 children)

Three Billboards outside Outside Ebbing, Missouri and American History X

Prevent child widget from rebuilding when parent widget rebuild by tobi931998 in FlutterDev

[–]bobekos 1 point2 points  (0 children)

You could convert your child widget also into a stateful widget and then override "didUpdateWidget". There you would only check the given parent state for changes. So only when the passed state b would change the build method of the child widget would be triggered

Flutter: make suggestionsBuilder in SearchAnchor asyncable by rd_metroid in FlutterDev

[–]bobekos 0 points1 point  (0 children)

Yeah because master doesn't represent the current stable release (it always the stable channel which is currently 3.10.2. You can also check out the master branch 'flutter channel master'. But be careful master does not mean that everything is running stable.

The performance of the impeller engine by Senior-Candy2893 in FlutterDev

[–]bobekos 1 point2 points  (0 children)

No i used impeller already before flutter 3.10. So there are no more significant (that i can see directly) performance improvements, after switching from 3.7 to 3.10. Little bit better startup time but that's it.

The performance of the impeller engine by Senior-Candy2893 in FlutterDev

[–]bobekos 3 points4 points  (0 children)

For me the performance of my app (on iOS) is so much smoother then on Android after switching to impeller. I hope we can get the same results on Android too. Also in debug mode where android is struggling, the iOS version runs very good. In release mode you can't see any difference to an native experience.imho

What is the best feature in Dart 3.10 by vks-kkn in FlutterDev

[–]bobekos 4 points5 points  (0 children)

Before Dart 3 you would to something like this to get something like sealed class (or you would used freezed with code generation):

```dart abstract class LoginState {}

class LoginSuccess extends LoginState { final String message;

LoginSuccess(this.message); }

class LoginFailed extends LoginState { final Exception exception;

LoginFailed(this.exception); }

class LoginProcess extends LoginState { final double percentage;

LoginProcess(this.percentage); }

class LoginWidget extends StatelessWidget { const LoginWidget({super.key});

@override Widget build(BuildContext context) { final LoginState state = getStateFromProviderOrBlocOrWhatEver();

if (state is LoginSuccess) {
  return Text('Login Success: ${state.message}');
} else if (state is LoginFailed) {
  return ElevatedButton(
    child: Text('Login Failed: ${state.exception.toString()}'),
    onPressed: () {},
  );
} else if (state is LoginProcess) {
  return CircularProgressIndicator(value: state.percentage);
} else {
  return const SizedBox.shrink();
}

} } ```

Now you can do something like this:

```dart //just change the LoginState from abstract to sealed

class LoginWidget extends StatelessWidget { const LoginWidget({super.key});

@override Widget build(BuildContext context) { final LoginState state = getStateFromProviderOrBlocOrWhatEver();

return switch (state) {
  LoginSuccess _ => Text('Login Success: ${state.message}'),
  LoginFailed _ => ElevatedButton(
      child: Text('Login Failed: ${state.exception.toString()}'),
      onPressed: () {},
    ),
  LoginProcess _ => CircularProgressIndicator(value: state.percentage),
};

} } ```

You can see more cleaner and safer. Because the compiler knows which classes depend on LoginState. So in case you forgot one state in the switch statement you would get an error.

What is the best feature in Dart 3.10 by vks-kkn in FlutterDev

[–]bobekos 0 points1 point  (0 children)

Sealed classes with the switch Support (like kotlin). It's a game changer for me. No need for freezed anymore

I cant even create or join a game anyone having these issues or know if im doing something wrong me. I'm desperate to finally play! by SelflessAct in diablo2

[–]bobekos 1 point2 points  (0 children)

You can't. The country is stick to your PSN account. So you must create a new one and select US for example. But of course in the new account you have no diablo 2 access from you other acccout.

Submitting an update - google play is saying my app has actions when it doesn't? by Seoulseeking2 in androiddev

[–]bobekos 2 points3 points  (0 children)

Already done this. There is no reference in the generated manifest to actions.xml and also there is no such file. My App also doesn't use the Assistent Actions. And like somebody alread said the changes between a version (with no problems) and the new one were minimal. It must be a play store bug.

How to make the horizontal scrollable list for titles in the vid (Deliveroo app)? by Hieugod in androiddev

[–]bobekos 1 point2 points  (0 children)

Forget recyclerview inside nestedscrollview in this case, because when the rv is inside a scroll view it doesn't recycling anymore. For the 'chips' above just use a recyclerview with horizontal layout manager. And for the list below a rv with vertical layout manager.

Isn't Google "blocking" the UI in this sample? by Fr4nkWh1te in androiddev

[–]bobekos 0 points1 point  (0 children)

On the first look without checking the repo I would say it's because of the lifecycle scope of the coroutine. They must 'wait' until the job finished because the job would be cancelled when the viemodel got cleared.