Custom Action - URI Path Formatting

I'm trying to a create an action where the splash screen times out and goes to the sign up screen in my app.

Code is below but am having issues with the URI - I get this error:

Target of URI doesn't exist: 'package:driftroom_01/start_pages/sign_up'. Try creating the file referenced by the URI, or try using a URI for a file that does exist.

// Automatic FlutterFlow imports
import '/backend/backend.dart';
import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/custom_code/actions/index.dart'; // Imports other custom actions
import '/flutter_flow/custom_functions.dart'; // Imports custom functions
import 'package:flutter/material.dart';
// Begin custom action code
// DO NOT REMOVE OR MODIFY THE CODE ABOVE!

// Set your action name, define your arguments and return parameter,
// and then add the boilerplate code using the button on the right!

import 'package:driftroom_01/start_pages/sign_up';

Future<void> splashAnimation(BuildContext context) async {
  return Future.delayed(Duration(milliseconds: 3140), () {
    Navigator.pushReplacement(
      context,
      MaterialPageRoute(builder: (context) => sign_up()),
    );
  });
}
12 replies