animated_slide_switcher 0.0.1 copy "animated_slide_switcher: ^0.0.1" to clipboard
animated_slide_switcher: ^0.0.1 copied to clipboard

A Flutter package that provides customizable animated slide switching and additional animation utilities.

example/lib/main.dart

import 'package:example/counter_display.dart';
import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData.light(useMaterial3: true),
      darkTheme: ThemeData.dark(useMaterial3: true),
      themeMode: ThemeMode.dark,
      home: HomeView(),
    );
  }
}

class HomeView extends HookWidget {
  const HomeView({
    super.key,
  });

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.black,
      body: Padding(
        padding: const EdgeInsets.all(8),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            CounterDisplay(),
          ],
        ),
      ),
    );
  }
}
6
likes
160
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that provides customizable animated slide switching and additional animation utilities.

Repository (GitHub)
View/report issues

Topics

#animations #slide-fade-transitions #value-based-animation #sliding-animation #spring-curve

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on animated_slide_switcher