clock_analog 0.0.3 copy "clock_analog: ^0.0.3" to clipboard
clock_analog: ^0.0.3 copied to clipboard

outdated

Clock Analog is used to pick time of day (without dialog box). User can use this package to add widgets of analog clock picker on screen, and can retrieve selected time with onChange event.

example/lib/main.dart

import 'package:clock_analog/clock_analog.dart';
import 'package:flutter/foundation.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 MaterialApp(
      title: 'Clock Analog',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Text("Clock Analog"),
        ),
        body: ClockAnalog(
          initialTime: TimeOfDay.now(),
          onChanged: (value) {
            if (kDebugMode) {
              print(value);
            }
          },
        ),
      ),
    );
  }
}
7
likes
50
points
50
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Clock Analog is used to pick time of day (without dialog box). User can use this package to add widgets of analog clock picker on screen, and can retrieve selected time with onChange event.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on clock_analog