cupertino_clock 1.0.0+1 copy "cupertino_clock: ^1.0.0+1" to clipboard
cupertino_clock: ^1.0.0+1 copied to clipboard

An analog clock that looks and feels the same as iPhone's analog clock from Standby Mode.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.black,
        body: Center(
          child: CupertinoAnalogClock.square(size: 500),
        ),
      ),
      debugShowCheckedModeBanner: false,
      theme: ThemeData(colorScheme: const ColorScheme.dark()),
      themeMode: ThemeMode.dark,
    );
  }
}
2
likes
160
pub points
26%
popularity

Publisher

unverified uploader

An analog clock that looks and feels the same as iPhone's analog clock from Standby Mode.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

async, flutter, meta, timezone

More

Packages that depend on cupertino_clock