Widget problem with new page

I want to make custom widget that on tap I will go to the new_page that I made in my flutterflow app. I know that I need to import that new_page widget and use it as this: Navigator.of(context).push( MaterialPageRoute(builder: (context) => NewPageWidget()), );

But I have problem with import. I know how to import custom widget that I created and that works fine. This is my import for custom widget and navigation goes as expected to employee_first_widget.

import '/custom_code/widgets/employee_first_widget.dart'; // Imports custom functions
Navigator.of(context).push(
          MaterialPageRoute(builder: (context) => EmployeeFirstWidget()),
        );
I have downloaded my code and I see that mine custom_code and mine new_page are in same level as mine page but if I make this:
import '/new_page/new_page_widget.dart';

I will get this error: Target of URI doesn't exist: '/new_page/new_page_widget.dart'. Try creating the file referenced by the URI, or try using a URI for a file that does exist.

This is my level view.

This is custom_code folder:
And this is my new_page page level.

How I can import this page?

1 reply