Skip to main content

still 0.1.2 copy "still: ^0.1.2" to clipboard
still: ^0.1.2 copied to clipboard

Cross-fades instead of slides when the platform asks for Reduce Motion. Style-neutral, so custom design systems keep working as Material leaves the SDK.

example/example.md

Wrap the app once. MotionScope decides for every screen. It does not animate by itself.

import 'package:flutter/material.dart';
import 'package:still/still.dart';

void main() {
  runApp(
    const MotionScope(
      child: MaterialApp(
        home: HomePage(),
      ),
    ),
  );
}

Put a widget only where something should move.

StillSwitcher(
  child: Text(line, key: ValueKey(line)),
)

StillEntrance(
  motion: StillMotion.slideUp,
  child: const CardBody(),
)

StillStagger(
  children: const [Note(title: 'Duration'), Note(title: 'Travel')],
)

Navigator.of(context).push(
  StillPageRoute<void>(builder: (_) => const DetailPage()),
);
1
likes
0
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

Cross-fades instead of slides when the platform asks for Reduce Motion. Style-neutral, so custom design systems keep working as Material leaves the SDK.

Repository (GitHub)
View/report issues

Topics

#accessibility #animation

License

unknown (license)

Dependencies

flutter

More

Packages that depend on still