GithubHelp home page GithubHelp logo

Comments (7)

pMertDogan avatar pMertDogan commented on July 20, 2024 1

I have the same problem with this package and git. Error is simple to fix. There is a casting problem like @emem365 mentioned.

'Class? ' cant be cast as 'Class' that's null safety

from shifting_tabbar.

emem365 avatar emem365 commented on July 20, 2024

@MisterB2B That seems right. The error is originating from:
https://github.com/mahdizakizadeh/shifting_tabbar/blob/15ea24350e9871f3290ceb2edf8e58bfdd15a217/lib/shifting_tabbar.dart#L118

The return type for the function is List<_ShiftingTabWidget?> while the type Cast expects the type List<_ShiftingTabWidget>.
The fix is simple enough:
https://github.com/mahdizakizadeh/shifting_tabbar/blob/15ea24350e9871f3290ceb2edf8e58bfdd15a217/lib/shifting_tabbar.dart#L131-L150
Every _ShiftingTabWidget? should be replaced with _ShiftingTabWidget, which seems correct from the point of null safety as well, since no _ShiftingTabWidget can be null.
I tried cloning the repository but there seems to be an error with some path, which makes it so that I can't clone the repository, nor does a git ref work in pubspec.yaml, since even that cannot clone the repository.
This is the error I face while cloning the repo

Resolving deltas: 100% (115/115), done.
error: invalid path 'example/build\ios/Runner.build/Release-iphoneos/Runner.build/dgph'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'                                                                                                                           

So I cannot really drop a PR or a fix for this issue as of now

from shifting_tabbar.

mzakizadeh avatar mzakizadeh commented on July 20, 2024

Hello everyone,
I apologize for the late reply to the issue. Because I am a full-time student, I do not have much free time, and it's been a long time that I have not worked with Flutter. I would be happy if someone solves the problem and send a pull request. It may take a few weeks if I want to solve the problem myself.
@emem365, if you can solve the problem somehow, please send a pull request, and I'll merge your code to the repository. And If I can help somehow, please let me know.

best regards
--Mahdi

from shifting_tabbar.

emem365 avatar emem365 commented on July 20, 2024

@mahdizakizadeh as I mentioned, I tried to but I can't clone the project. There seems to be error with a files path

from shifting_tabbar.

mzakizadeh avatar mzakizadeh commented on July 20, 2024

@emem365 Is that a Git problem? I don't have any issue with cloning the project.

from shifting_tabbar.

aymaalo avatar aymaalo commented on July 20, 2024

So nobody can fix it ? Even if we already know how to do it ?

from shifting_tabbar.

aymaalo avatar aymaalo commented on July 20, 2024

@mahdizakizadeh @emem365

from shifting_tabbar.

Related Issues (6)

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.