cupertino_clock 1.0.0+1 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.
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,
);
}
}