Coder Social home page Coder Social logo

hijri_picker's Introduction

hijri_picker's People

Contributors

ahmed-wafik avatar ahmedoid avatar gesraha-inova avatar hasanalyazidi avatar muhammadusamasiddiqui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hijri_picker's Issues

Text overflow

ff
png…]()

ff2

As you can see there are several errors related to rendering issues

this happen when i'm using calendar inside scrollable widget
thank you.

locale

السلام عليكم,
شكرا عالمجهود استاذ احمد,
واجهتني مشكلة وحيدة اللي هي اللغة..
كيف اظهر التقويم باللغة العربية

locale: Locale('ar'),
لاتظهر التقويم بالعربي

Invalid argument: Instance of 'HijriCalendar' error

Hi,

when I try to pick a date then press ok this error appears:

ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: Invalid argument: Instance of 'HijriCalendar'

my code:
Future _selectDate(BuildContext context) async {
final HijriCalendar picked = await showHijriDatePicker(
context: context,
initialDate: selectedDate,
lastDate: new HijriCalendar()
..hYear = 1445
..hMonth = 9
..hDay = 25,
firstDate: new HijriCalendar()
..hYear = 1438
..hMonth = 12
..hDay = 25,
initialDatePickerMode: DatePickerMode.day,
);
if (picked != null)
setState(() {
selectedDate = picked;
});
book();

}

book() {
User user = FirebaseAuth.instance.currentUser;
final uid = user.uid;
if (selectedDate != null) {
FirebaseFirestore.instance
.collection('/profiles')
.where('Uid', isEqualTo: uid)
.get()
.then((val) {
FirebaseFirestore.instance.collection('/photography').add({
'KitchenUid': uid,
'kitchenMobile': val.docs[0].data()['Mobile'],
'date': selectedDate,
});
});
}
}

Dart 3

I am experiencing an incompatibility with Dart 3. When I try to compile my code, I get the following error:

/F:/flutter/.pub-cache/hosted/pub.dev/hijri_picker-3.0.0/lib/hijri_picker.dart:793:33: Error: The getter 'accentTextTheme' isn't defined for the class 'ThemeData'.

  • 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('/F:/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 'accentTextTheme'.
    itemStyle = themeData.accentTextTheme.bodyText1;
    ^^^^^^^^^^^^^^^
    /F:/flutter/.pub-cache/hosted/pub.dev/hijri_picker-3.0.0/lib/hijri_picker.dart:795:32: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'.
  • 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('/F:/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'.
    color: themeData.accentColor, shape: BoxShape.circle);
    ^^^^^^^^^^^
    /F:/flutter/.pub-cache/hosted/pub.dev/hijri_picker-3.0.0/lib/hijri_picker.dart:804:43: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'.
  • 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('/F:/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'.
    ?.copyWith(color: themeData.accentColor);
    ^^^^^^^^^^^
    /F:/flutter/.pub-cache/hosted/pub.dev/hijri_picker-3.0.0/lib/hijri_picker.dart:946:45: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'.
  • 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('/F:/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'.
    ?.copyWith(color: themeData.accentColor

Package issue after flutter upgrade

Dear Hijir_picker developers,

After the latest stable Flutter version : (Flutter 3.10.5 • channel stable • https://github.com/flutter/flutter.git) there are some issues in your package as follows:
There are also some attached photos to help you resolve the issue, for me I commented the issues that I identified and it worked fine however, it will be better to get a new update from the package side,

Regards,

Error (Xcode): ../../../../.pub-cache/hosted/pub.dev/hijri_picker-3.0.0/lib/hijri_picker.dart:795:32: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'.
../…/lib/hijri_picker.dart:795
Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.

Screenshot 2023-07-02 at 4 00 59 PM
Screenshot 2023-07-02 at 4 03 58 PM

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.