Skip to content

Issues/can't compile #7

Description

@Welnnys

Hey there, I have been getting some errors when I try to compile/run it using "flutter run"

Launching lib\main.dart on Edge in debug mode...
../../../AppData/Local/Pub/Cache/hosted/pub.dev/google_fonts-2.1.0/lib/src/google_fonts_base.dart:15:1: Error: 'AssetManifest' is imported from both
'package:flutter/src/services/asset_manifest.dart' and 'package:google_fonts/src/asset_manifest.dart'.
import 'asset_manifest.dart';
^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/auto_route-3.2.2/lib/src/router/provider/auto_route_information_provider.dart:30:47: Error: The required named parameter 'type' in method
'AutoRouteInformationProvider.routerReportsNewRouteInformation' is not required in overridden method 'RouteInformationProvider.routerReportsNewRouteInformation'.
{required RouteInformationReportingType type}) {
^
/C:/src/flutter/packages/flutter/lib/src/widgets/router.dart:1440:8: Context: This is the overridden method ('routerReportsNewRouteInformation').
void routerReportsNewRouteInformation(RouteInformation routeInformation, {RouteInformationReportingType type = RouteInformationReportingType.none}) {}
^
lib/app_theme.dart:29:5: Error: No named parameter with the name 'primaryVariant'.
primaryVariant: AppColors.secondaryColor,
^^^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/color_scheme.dart:87:9: Context: Found this candidate, but the arguments don't match.
const ColorScheme({
^^^^^^^^^^^
lib/app_theme.dart:21:7: Error: No named parameter with the name 'accentColor'.
accentColor: colorScheme.primary,
^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart:237:11: Context: Found this candidate, but the arguments don't match.
factory ThemeData({
^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/google_fonts-2.1.0/lib/src/google_fonts_base.dart:33:31: Error: 'AssetManifest' is imported from both
'package:flutter/src/services/asset_manifest.dart' and 'package:google_fonts/src/asset_manifest.dart'.
AssetManifest assetManifest = AssetManifest();
^^^^^^^^^^^^^
lib/presentation/widgets/buttons/nimbus_button.dart:40:21: Error: The argument type 'BorderRadius?' can't be assigned to the parameter type 'BorderRadiusGeometry' because 'BorderRadius?' is
nullable and 'BorderRadiusGeometry' isn't.

  • 'BorderRadius' is from 'package:flutter/src/painting/border_radius.dart' ('/C:/src/flutter/packages/flutter/lib/src/painting/border_radius.dart').
  • 'BorderRadiusGeometry' is from 'package:flutter/src/painting/border_radius.dart' ('/C:/src/flutter/packages/flutter/lib/src/painting/border_radius.dart').
    borderRadius: borderRadius,
    ^
    ../../../AppData/Local/Pub/Cache/hosted/pub.dev/gap-2.0.0/lib/src/rendering/gap.dart:84:29: Error: The getter '_direction' isn't defined for the class 'RenderGap'.
  • 'RenderGap' is from 'package:gap/src/rendering/gap.dart' ('../../../AppData/Local/Pub/Cache/hosted/pub.dev/gap-2.0.0/lib/src/rendering/gap.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named '_direction'.
    final Axis? direction = _direction;
    ^^^^^^^^^^
    ../../../AppData/Local/Pub/Cache/hosted/pub.dev/gap-2.0.0/lib/src/rendering/gap.dart:98:29: Error: The getter '_direction' isn't defined for the class 'RenderGap'.
  • 'RenderGap' is from 'package:gap/src/rendering/gap.dart' ('../../../AppData/Local/Pub/Cache/hosted/pub.dev/gap-2.0.0/lib/src/rendering/gap.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named '_direction'.
    final Axis? direction = _direction;
    ^^^^^^^^^^
    Waiting for connection from debug service on Edge... 28.6s
    Failed to compile application.

any idea how I can fix those?

Best wishes
Welnnys

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