still 0.1.2
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()),
);