Web Publish failed

General Conversations

The HTML Renderer is deprecated. Do not use "--web-renderer=html".

See: https://docs.flutter.dev/to/web-html-renderer-deprecation

Target dart2js failed: ProcessException: Process exited abnormally with exit code 1:

lib/flutter_flow/nav/nav.dart:99:41:

Error: A value of type 'Object' can't be returned from a function with return type 'Widget'.

- 'Object' is from 'dart:core'.

- 'Widget' is from 'package:flutter/src/widgets/framework.dart' ('/sdks/flutter/packages/flutter/lib/src/widgets/framework.dart').

appStateNotifier.loggedIn ? NavBarPage() : (),

^

lib/flutter_flow/nav/nav.dart:92:42:

Error: The argument type 'Object' can't be assigned to the parameter type 'Widget'.

- 'Object' is from 'dart:core'.

- 'Widget' is from 'package:flutter/src/widgets/framework.dart' ('/sdks/flutter/packages/flutter/lib/src/widgets/framework.dart').

child: appStateNotifier.loggedIn ? NavBarPage() : (),

^

Error: Compilation failed.

#0 RunResult.throwException (package:flutter_tools/src/base/process.dart:122:5)

Error: Failed to compile application for the Web.