animated_analog_clock 0.1.0 copy "animated_analog_clock: ^0.1.0" to clipboard
animated_analog_clock: ^0.1.0 copied to clipboard

A customizable and animated analog clock widget for Flutter applications.

example/README.md

Example #

Here's an example of how to use the AnimatedAnalogClock widget:

import 'package:animated_analog_clock/animated_analog_clock.dart';
import 'package:example/widgets/custom_appbar.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(
    MaterialApp(
      home: const CustomClockExample(),
      debugShowCheckedModeBanner: false,
      darkTheme: ThemeData(colorScheme: const ColorScheme.dark()),
      theme: ThemeData(colorScheme: const ColorScheme.light()),
      themeMode: ThemeMode.system,
    ),
  );
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: CustomAppBar.appBar('Customized Animated Clock'),
      body: const Center(
        child: AnimatedAnalogClock(
          location: 'Australia/Darwin',
          size: 200,
          backgroundColor: Color(0xff1E1E26),
          hourHandColor: Colors.lightBlueAccent,
          minuteHandColor: Colors.lightBlueAccent,
          secondHandColor: Colors.amber,
          centerDotColor: Colors.amber,
          hourDashColor: Colors.lightBlue,
          minuteDashColor: Colors.blueAccent,
          dialType: DialType.numbers,
          numberColor: Colors.blueAccent,
          extendHourHand: true,
          extendMinuteHand: true,
        ),
      ),
    );
  }
}


9
likes
150
points
83
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable and animated analog clock widget for Flutter applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, timezone

More

Packages that depend on animated_analog_clock