Skip to content

Migrate to null-safety#1

Open
devslava wants to merge 1 commit intoamitkot:masterfrom
devslava:nullsafety
Open

Migrate to null-safety#1
devslava wants to merge 1 commit intoamitkot:masterfrom
devslava:nullsafety

Conversation

@devslava
Copy link

Currently this library can't be used with Flutter 2.5.0:

Error: Cannot run with sound null safety, because the following dependencies
    don't support null safety:
     - package:appbar_elevation

This PR migrates code to null-safety. To support it, Dart min version requirement should be 2.12.0.

@maherjaafar
Copy link

@amitkot any plans to merge this PR?

@maherjaafar
Copy link

You can use SliverAppBar with scrolledUnderElevation instead of this package.

Example code:

  CustomScrollView(
      slivers: [
        const SliverAppBar(
          title: Text('Dynamic elevation'),
          pinned: true,
          scrolledUnderElevation: 20,
        ),
        SliverList(
          delegate: SliverChildBuilderDelegate(
            (_, int index) {
              return ListTile(
                title: Text(index.toString()),
              );
            },
            childCount: 20,
          ),
        ),
      ],
    );

@amitkot
Copy link
Owner

amitkot commented Jul 18, 2022

@maherjaafar I no longer use this in my projects, the direction you suggest looks good!

Repository owner deleted a comment from katsavav Feb 5, 2024
Repository owner deleted a comment from tomjrtsmith Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants