I wanted to use a slidable widget for my to-do list app so I attempted to add the flutter_slidable widget to my pubspec.yaml. However, there is always a spelling error with the message: Typo: In word ‘slidable’. This is part of my code:
dependencies:
flutter:
sdk: flutter
flutter_slidable: ^3.1.0
I made sure my flutter SDK version was up to date. I tried running ‘flutter clean’ and ‘flutter build’ as well. However, the problem was not fixed. Is there a simple way to fix this?