Code Monkey home page Code Monkey logo

Comments (2)

margorski avatar margorski commented on July 22, 2024 6

With Flutter 3.10 ThemeData.primaryColorBrightness was removed. An easy fix is to change it to ThemeData.brightness.

I've created a pull request with the fix. I hope the author will pull that and prepare a new version with fix. If not I'll fork this repository for further usage.

Here is PR: #115
Until author release new version you may use fixed version from my repository: https://github.com/margorski/hashtagable
As this library is not published in pub.dev you need to point in your pubspec.yaml directly to repository.

It should looks like this in your pubspec.yaml:
hashtagable: git: url: https://github.com/margorski/hashtagable.git ref: 69ae9bbf7985c3dfd9b0617767fe4b09e7bb0664

from hashtagable.

askankit avatar askankit commented on July 22, 2024
./../.pub-cache/hosted/pub.dev/hashtagable-2.3.0+1/lib/widgets/hashtag_text_field.dart:1202:44: Error: The getter 'primaryColorBrightness' isn't defined for the class 'ThemeData'.
 - 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('../../Downloads/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 'primaryColorBrightness'.
        widget.keyboardAppearance ?? theme.primaryColorBrightness;
                                           ^^^^^^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception


FAILURE: Build failed with an exception.

* Where:
Script '/Users/parasmac/Downloads/flutter/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy' line: 1297

This Is what I get My Flutter version-
Flutter (Channel stable, 3.13.6, on macOS 14.0 23A344 darwin-arm64, locale en-IN)

from hashtagable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.