interpolated_countdown 1.0.2 copy "interpolated_countdown: ^1.0.2" to clipboard
interpolated_countdown: ^1.0.2 copied to clipboard

Flutter package for a countdown widget with interpolated colors.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    CountDownUseCase useCase = CountDownUseCase(
      callBackOnEverySecondConsumed: (secondsConsumed) {
        printLog("Time Spent: $secondsConsumed secs (from callback receiver)");
      },
      outerPlateColorRange:
          DefaultInterpolationColorsRange.outerRingDefaultColorRange,
      innerPlateColorRange:
          DefaultInterpolationColorsRange.innerRingDefaultColorRange,
    );
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Countdown Widget Example'),
        ),
        body: Center(
          child: InterpolatedCountDownWidget(countdownUseCase: useCase),
        ),
      ),
    );
  }
}
4
likes
130
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter package for a countdown widget with interpolated colors.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on interpolated_countdown