Skip to content

Deprecated Material 2 APIs causing errors #21

@Riveascore

Description

@Riveascore

Details:

flutter run -d macos
Launching lib/main.dart on macOS in debug mode...
.gitignore does not ignore Swift Package Manager build directories, updating.
Running pod install...                                           2,725ms
lib/core/classes/theme_manager.dart:18:11: Error: No named parameter with the name 'bottomAppBarColor'.
          bottomAppBarColor: Colors.white,
          ^^^^^^^^^^^^^^^^^
/usr/local/share/flutter/packages/flutter/lib/src/material/theme_data.dart:265:11: Context: Found this candidate, but the arguments don't match.
  factory ThemeData({
          ^
lib/features/main_app/Screens/mobile/about.dart:45:42: Error: The getter 'bodyText1' isn't defined for the type 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/usr/local/share/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'.
                  color: theme.textTheme.bodyText1!.color,
                                         ^^^^^^^^^
lib/features/main_app/Screens/mobile/about.dart:48:46: Error: The getter 'bodyText1' isn't defined for the type 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/usr/local/share/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'.
                cursorColor: theme.textTheme.bodyText1!.color!,
                                             ^^^^^^^^^
lib/features/main_app/Screens/tablet/about.dart:47:42: Error: The getter 'bodyText1' isn't defined for the type 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/usr/local/share/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'.
                  color: theme.textTheme.bodyText1!.color,
                                         ^^^^^^^^^
lib/features/main_app/Screens/tablet/about.dart:50:46: Error: The getter 'bodyText1' isn't defined for the type 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/usr/local/share/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'.
                cursorColor: theme.textTheme.bodyText1!.color!,
                                             ^^^^^^^^^
Target kernel_snapshot_program failed: Exception
Failed to package /Users/chrisaga/Projects/flutter/lockbox_countdown.
Command PhaseScriptExecution failed with a nonzero exit code
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner')
** BUILD FAILED **

Building macOS application...                                           
Error: Build process failed

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