Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The getter 'display1' isn't defined for the class 'TextTheme' #18

Open
taj-nili opened this issue Sep 15, 2021 · 4 comments
Open

The getter 'display1' isn't defined for the class 'TextTheme' #18

taj-nili opened this issue Sep 15, 2021 · 4 comments

Comments

@taj-nili
Copy link

hi every body
after upgrade flutter to 2.5.0. the "jalali_calender" package have come error:

D:/flutter/.pub-cache/hosted/pub.dartlang.org/jalali_calendar-1.0.4/lib/src/jalalicalendarpicker.dart:89:48: Error: The getter 'display1' isn't defined for the class 'TextTheme'.

  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/D:/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 'display1'.
    final TextStyle dayStyle = headerTextTheme.display1!

can everyone help me?

@erfanegtfi
Copy link

Hi, I fixed issue.
just add this repo to the dependencies

jalali_calendar:
git: https://github.com/erfanegtfi/jalali_calendar

@ARASHz4
Copy link

ARASHz4 commented Oct 27, 2021

Hi, I fixed issue. just add this repo to the dependencies

jalali_calendar: git: https://github.com/erfanegtfi/jalali_calendar

Please release new version in pub.dev for this issue

@sina8013
Copy link

Hi, I fixed issue. just add this repo to the dependencies

jalali_calendar: git: https://github.com/erfanegtfi/jalali_calendar

سلام اقا عرفان تشکر بابت راهنماییت فوق العاده بش نیاز داشتم ممنونم ازت با جایگزینی همون پکیجی که لینکشو دادید حل شد ممنونم.

@sae13
Copy link

sae13 commented Dec 12, 2022

Hi, I fixed issue. just add this repo to the dependencies

jalali_calendar: git: https://github.com/erfanegtfi/jalali_calendar

does not working for me

  jalali_calendar:
    git: https://github.com/erfanegtfi/jalali_calendar

my flutter version:

 flutter --version
Flutter 3.3.9 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b8f7f1f986 (3 weeks ago) • 2022-11-23 06:43:51 +0900
Engine • revision 8f2221fbef
Tools • Dart 2.18.5 • DevTools 2.15.0

and error is:


ERROR: ../../../android/flutter/.pub-cache/git/jalali_calendar-3dc08d981390f45ba7bc39e228635404549887b3/lib/src/datepicker.dart:493:20: Error: The method 'FlatButton' isn't defined for the class '_DatePickerState'.
ERROR:  - '_DatePickerState' is from 'package:jalali_calendar/src/datepicker.dart' ('../../../android/flutter/.pub-cache/git/jalali_calendar-3dc08d981390f45ba7bc39e228635404549887b3/lib/src/datepicker.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'FlatButton'.
ERROR:             child: FlatButton(
ERROR:                    ^^^^^^^^^^
ERROR: ../../../android/flutter/.pub-cache/git/jalali_calendar-3dc08d981390f45ba7bc39e228635404549887b3/lib/src/datepicker.dart:500:20: Error: The method 'FlatButton' isn't defined for the class '_DatePickerState'.
ERROR:  - '_DatePickerState' is from 'package:jalali_calendar/src/datepicker.dart' ('../../../android/flutter/.pub-cache/git/jalali_calendar-3dc08d981390f45ba7bc39e228635404549887b3/lib/src/datepicker.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'FlatButton'.
ERROR:             child: FlatButton(
ERROR:                    ^^^^^^^^^^
Exception: Build process failed


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

No branches or pull requests

5 participants