Skip to content

splash screen to black screen #2

Description

@PJPAC

Hi,
I'm learning dart and flutter with an interest in clean architecture. For this reason, I'm testing and trying to understand existing apps, which led me to download SuperShop as a zip file and to open with Android Studio.
I would like to take advantage of this message to thank you for having shared your SuperShop app code.

I've notice a few updates which I could address such as

  • In lib/core/components/custom_app_bar.dart, 'the class 'PreferredSizeWidget' can't be used as a mixin because it's neither a mixin class nor a mixin' led to replace with by implements.
  • in main.dart,
    * isDark ?? false; became isDark ??= false;
    * I've uncommented the dataLanguage section, and replaced ?? by ??=
  • In test/widget_test.dart, 'A value of type 'Null' can't be assigned to a parameter of type 'Widget' in a const constructor.' led to replace
    await tester.pumpWidget(const MyApp());
    by
     await tester.pumpWidget(MyApp(
        startWidget: HomeScreen(),
        isDark: true,
        language: 'en',
     ));

The app starts apparently fine, there are neither warnings nor error messages, the splash screen pops up and is removed but nothing else happens. I touch my phone screen and then on the console I read the following lines

I/ViewRootImpl@32b5226MainActivity: ViewPostIme pointer 0
I/ViewRootImpl@32b5226MainActivity: ViewPostIme pointer 1

It is as if the app was going through

     runApp(
        initialLocalization(
            child: MyApp(
          ...
        )),
      );

just fine but was not landing on any relevant screen.

That said I could not identify the issue and a fix, so that I would welcome any suggestion.

Many Thanks & Best Wishes
PAscal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions