fluttercommunity / responsive_scaffold

Responsive Scaffold - On mobile it shows a list and pushes to details and on tablet it shows the List and the selected item. Maintainer: @rodydavis
https://fluttercommunity.github.io/responsive_scaffold/
MIT License
362 stars 42 forks source link

Removed resizeToAvoidBottomPadding parameter #28

Open gebes opened 3 years ago

gebes commented 3 years ago

The resizeToAvoidBottomPadding parameter is deprecated and was now removed, as stated in the docs.

This prevents to compile this plugin with newer Flutter versions on the master channel.

Launching lib\main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...
../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/responsive_scaffold-1.3.0+2/lib/templates/list/responsive_list.dart:217:11: Error: No named parameter with the name 'resizeToAvoidBottomPadding'.
          resizeToAvoidBottomPadding: resizeToAvoidBottomPadding,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/flutter/packages/flutter/lib/src/material/scaffold.dart:1449:9: Context: Found this candidate, but the arguments don't match.
  const Scaffold({
        ^^^^^^^^
../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/responsive_scaffold-1.3.0+2/lib/templates/list/views/tablet.dart:188:15: Error: No named parameter with the name 'resizeToAvoidBottomPadding'.
              resizeToAvoidBottomPadding: widget?.resizeToAvoidBottomPadding,
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/flutter/packages/flutter/lib/src/material/scaffold.dart:1449:9: Context: Found this candidate, but the arguments don't match.
  const Scaffold({
        ^^^^^^^^
Failed to compile application.
Fonzeca commented 3 years ago

Yeah, i need that

gebes commented 3 years ago

@Fonzeca if you need it now, you can just use

  responsive_scaffold:
    git: https://github.com/Gebes/responsive_scaffold.git

in your pubspec.yaml

taeilyoon commented 3 years ago

Now It prevents to compile this plugin with newer Flutter versions on the Dev channel.