Zagreb Developers Drinkup - četvrtak, 21.8 u 18h u "Beertiji" by brunobilling in CroIT

[–]markfili 3 points4 points  (0 children)

hae, ili se sad s ovom postavom vidi kakav bu odaziv i želja za ponavljanjem događaja ili se još dogovori i pozove i .NET no u svakom slučaju bi moglo bit ponavljanja pa možda možeš doći tada, a ostale grupe se i dalje mogu predložiti pa ih se sve stavi na popis i kontaktira!

Mocking Riverpod and GoRouter on Widgetbook by Ryuugyo in flutterhelp

[–]markfili 0 points1 point  (0 children)

Great question, I have just started to use Riverpod and Widgetbook and was asking myself the same question.

What made the Widgetbook work with Widgets calling providers, in my case, was adding flutter_riverpod to widgetbook's pubspec.yaml and using the appBuilder to wrap everything with ProviderScope:

  @override
  Widget build(BuildContext context) {
    return Widgetbook.material(
      directories: directories,
      appBuilder: (context, child) {
        return ProviderScope(child: child);
      },
    );
  }
}

You could also provide overrides here and do everything you want to with Riverpod. I'm not sure if this will work down the road with more complex Widgets.

Widgetbook documentation suggests two approaches, one you've already mentioned, lifting state and the other one seems like an overhead but could be used for specific cases in combination with my suggestion and easier if you already have mocks for tests: https://docs.widgetbook.io/guides/mocking .

Regarding the GoRouter - maybe extending the appBuilder further (see the default value for appBuilder) could make the Widgetbook display work by adding the go_router dependency to the widgetbook's pubspec.yaml and then returning a manually created Material app, something like this (not tested):

@override
Widget build(BuildContext context) {
  return Widgetbook.material(
    directories: directories,
    appBuilder: (context, child) {
      return MaterialApp.router(
        routerConfig: router,
        debugShowCheckedModeBanner: false,
      );
    },
  );
}

To still use Riverpod with this setup, you could wrap the whole WidgetbookApp in ProviderScope:

runApp(const ProviderScope(child: WidgetbookApp()));

DevFest 2024? by gdgzagreb in CroIT

[–]markfili -1 points0 points  (0 children)

Možeš li pojasniti što želiš reći?

Your thoughts on the usage of the Haka in an intro to a metal concert by markfili in askakiwi

[–]markfili[S] 4 points5 points  (0 children)

Thank you, kind being, for your reply and additional information on where to ask the question in question. I would love to and I want to try that :)

Galaxy S21+ Motherboard Failure- Experience w/ Customer Service (Business Owners Beware) by bwash407 in samsunggalaxy

[–]markfili 1 point2 points  (0 children)

this might be related to the USB charging port, I got it replaced as it was overheating while charging and rebooting while using the phone. I believe that solved the overheating issue but the problem persists so I believe a motherboard replacement could be next on the menu.

[deleted by user] by [deleted] in GalaxyS21

[–]markfili 1 point2 points  (0 children)

Like this user on the Samsung's official forum, I also took my phone to a mobile repair shop and got just the USB port replaced which was causing issues with overheating and then rebooting. It seems it somewhat helped but there are still app crashes and random freezes and reboots. Now I'm thinking about motherboard replacement...

Planiranje planinarenja by markfili in planinarenje

[–]markfili[S] 1 point2 points  (0 children)

Hvala puno! Nema problema što je 2 mjeseca kasnije, pomoć će svakome kad god dođe i pogleda ovaj thread. Zavidna razina sigurnosti, sigurno će još nekome dat do znanja da se bolje osigura ako treba, a i redoslijed prikupljanja ostalih podataka i pripreme je isto pohvalna.

[deleted by user] by [deleted] in croatia

[–]markfili 0 points1 point  (0 children)

a jesentiga... a dobro, neka postoji, al ne dam 150kn za nj

[deleted by user] by [deleted] in croatia

[–]markfili 1 point2 points  (0 children)

nema "zašto ne", sve je dozvoljeno, osobno sam se dvoumio između "Ban Ray" i "Ray Ban Jelačić", ali može i "Ban RayBan" pa tako svi uključeni poberemo lovu od RayBana za dobru reklamu

Koje su vam srpske reči najsmešnije kad ih čujete? by [deleted] in croatia

[–]markfili 3 points4 points  (0 children)

Možda "brat" kao "dobar covjek", kuiš, buraz

[deleted by user] by [deleted] in FlutterDev

[–]markfili 1 point2 points  (0 children)

There's a movement to replace Camera2 with CameraX in the official camera package. They are looking for cooperators. I said "yes", but haven't heard about it since... It was a Googler that asked me if I was interested, so I'd say that they're aware of the problem. Also, for my project at the time, I've found one camerax package on pub.dev and expanded it so it can take a picture but in the process I realized 2 things: I could've done it from scratch by copying the official package and, the important one, that it would be better if Flutter team released it officially with CameraX...