animated_segment 0.0.2 copy "animated_segment: ^0.0.2" to clipboard
animated_segment: ^0.0.2 copied to clipboard

outdated

Package provides you a modern animated fancy segment. Show selection of tab using elastic way animation.

example/lib/main.dart

import 'package:animated_segment/segment_animation.dart';
import 'package:example/constants/strings.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({
    Key? key,
  }) : super(key: key);

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        alignment: Alignment.center,
        color: AppColors.white,
        child: const AnimatedSegment(
          segmentNames: [Strings.tab_1, Strings.tab_2, Strings.tab_3],
          backgroundColor: AppColors.bgColor,
          segmentTextColor: AppColors.white,
          rippleEffectColor: AppColors.primary,
          selectedSegmentColor: AppColors.primary,
        ),
      ),
    );
  }
}
71
likes
0
pub points
43%
popularity

Publisher

verified publishermindinventory.com

Package provides you a modern animated fancy segment. Show selection of tab using elastic way animation.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on animated_segment