TechnoPrashant / Sizer

A flutter plugin for Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple.
MIT License
249 stars 76 forks source link

Problem importing Sizer #79

Closed CadisRaziel closed 1 month ago

CadisRaziel commented 1 month ago

I have my dart SDK at version: 3.3.2, and my flutter at version 3.19.4 and devTools at version 2.31.1, I'm trying to use Sizer at version 3.0.0 and it's accepted in my app but when I import it into the main

return Sizer (builder: (context, orientation, screenType) {
      return MaterialApp(
        navigatorKey: NavigationService.navigatorKey,
        localizationsDelegates: const [

It has a problem not finding Sizer in the dependencies.... Has there been a change in the class? Is there another way to call Sizer?

I did a test and put it in version 2.0.15 in this version it can already find the package to perform the import, so I was in doubt if there was any change at the time of calling this class in my main.

Eu tento realizar o import manual import 'package:sizer/sizer.dart'; porem tenho o seguinte alerta

Unused import: package:sizer/sizer.dart. Try removing the import directive

RMatushkin commented 1 month ago

Use ResponsiveSizer. README is outdated, unfortunately.

CadisRaziel commented 1 month ago

@RMatushkin the ResponsiveSizer package ?

RMatushkin commented 1 month ago

@RMatushkin the ResponsiveSizer package ?

No, use widget ResponsiveSizer instead of Sizer from import 'package:sizer/sizer.dart';

CadisRaziel commented 1 month ago

Ok thx

Nisa-fatima369 commented 1 month ago

I have having the same issue.. then 2.0.14 was suitable from last day ..but now reading this issue I have just changed the widget with latest version.