jalali_calendar icon indicating copy to clipboard operation
jalali_calendar copied to clipboard

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

Open taj-nili opened this issue 3 years ago • 4 comments

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?

taj-nili avatar Sep 15 '21 05:09 taj-nili

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

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

erfanegtfi avatar Sep 19 '21 12:09 erfanegtfi

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

ARASHz4 avatar Oct 27 '21 13:10 ARASHz4

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

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

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

sina8013 avatar Jan 14 '22 16:01 sina8013

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


sae13 avatar Dec 12 '22 16:12 sae13