Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

issues with building on android studio flamingo and flutter 3.10.4 #2

Open
craigers521 opened this issue Jun 13, 2023 · 1 comment
Open

Comments

@craigers521
Copy link

Hello - it looks like some of the theme colors among other things are out of date and building results in an error.

Any chance this repo is going to be updated?

Error output:

../../.pub-cache/hosted/pub.dev/google_fonts-3.0.1/lib/src/google_fonts_base.dart:14: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';
^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/theme_provider-0.5.0/lib/src/data/app_theme.dart:109:9: Error: No named parameter with the name 'accentColor'.
        accentColor: Colors.pink,
        ^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/theme_provider-0.5.0/lib/src/widgets/theme_dialog.dart:104:30: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'.
 - 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('/opt/homebrew/Caskroom/flutter/3.10.4/flutter/packages/flutter/lib/src/material/theme_data.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'accentColor'.
                : theme.data.accentColor,
                             ^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/google_fonts-3.0.1/lib/src/google_fonts_base.dart:32: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/widgets/magazine.dart:126:13: Error: 'Badge' is imported from both 'package:badges/src/badge.dart' and 'package:flutter/src/material/badge.dart'.
            Badge(
            ^^^^^
../../.pub-cache/hosted/pub.dev/package_info_plus-3.0.2/lib/src/file_version_info.dart:13:17: Error: Field 'wLanguage' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
  external int? wLanguage;
                ^
../../.pub-cache/hosted/pub.dev/package_info_plus-3.0.2/lib/src/file_version_info.dart:16:17: Error: Field 'wCodePage' cannot be nullable or have type 'Null', it must be `int`, `double`, `Pointer`, or a subtype of `Struct` or `Union`.
  external int? wCodePage;
                ^
Target kernel_snapshot failed: Exception


FAILURE: Build failed with an exception.

* Where:
Script '/opt/homebrew/Caskroom/flutter/3.10.4/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1201

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/opt/homebrew/Caskroom/flutter/3.10.4/flutter/bin/flutter'' finished with non-zero exit value 1
@Maritsu
Copy link

Maritsu commented Jun 15, 2023

Same issue here, need help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants