GithubHelp home page GithubHelp logo

hadesnull123 / rotary_phone_lock Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yeasin50/rotary_phone_lock

0.0 1.0 0.0 9.4 MB

Rotate Dial Lock

License: MIT License

Objective-C 0.07% Kotlin 0.24% Dart 96.07% Swift 0.77% HTML 2.86%

rotary_phone_lock's Introduction

Rotary dial Locker

Null_safety OK Flutter-v2.0.3 Dart-v2.12.2 channel-stable PyPI license

Dependencies :

dependencies dependencies dependencies


OutPut Gif

How it works

Most magic handle by GuesterDetector.

  • onPanEnd
  • onPanDown
  • onPanUpdate

SpringHouse, 1st we locate where users tap on screen using localPosition offset. for UI tap update Transform angle will update automatically until it reaches its max point. We also confirm the digit by angle. Then, using Timer, we minimize the value and change the UI until it reaches the original position.

UI State handle using Dot Provider.



Dots Animation

Dot Anime

For the Dot animation you can check anim_tester.dart


Text Animation


There are also different approaches that can be applied, like doing most parts just using CustomPainter. Best approach will be using images. Digit detection can handle touchPoint + radius. Rotate direction can be improved by calculating angles. I gave users more flexibility ๐Ÿ˜.

But for wheels , it's easy to do with images. Also paint maker sites can help to make this shape with a short amount of time. There are some unnecessary methods for test & future use purposes.

inspiration LinkedIn Video

Know more about Rotary dial


License & copyright


Licensed under the MIT License.


rotary_phone_lock's People

Contributors

yeasin50 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.