TechieBlossom / movie_app_tutorial

MIT License
238 stars 80 forks source link

navigation_drawer error #21

Closed NTMS2017 closed 3 years ago

NTMS2017 commented 3 years ago

How can I correct this? I am using flutter sdk stable 2.0.2. Thanks for great tutorial.

error: The named parameter 'child' isn't defined. (undefined_named_parameter at [movieapp] lib/presentation/journeys/drawer/navigation_drawer.dart:100)

 void _showDialog(BuildContext context) {
    showDialog(
      context: context,
      child: AppDialog(
        title: TranslationConstants.about,
        description: TranslationConstants.aboutDescription,
        buttonText: TranslationConstants.okay,
        image: Image.asset(
          'assets/pngs/tmdb_logo.png',
          height: Sizes.dimen_32.h,
        ),
      ),
    );
  }
TechieBlossom commented 3 years ago

showDialog uses builder now, not child.