expire_it
让应用过期。在到期日期后,用户将无法使用该应用。
- 星标
- 2
- 复刻
- 0
- 最近推送(UTC)
- 2024年4月28日
- 项目状态
- 未归档
原始 README
以下为英文项目原文快照,最新内容请访问 GitHub。
Expire It Flutter App
Expire It is a unique Flutter app designed to provide an expiration mechanism for applications. This app ensures that the target app becomes inaccessible after a specified date and time, preventing unauthorized usage beyond the intended period. Unlike other methods that rely on local device time changes, Expire It sources its expiration information from an online server, making it highly secure and tamper-resistant.
Features
-
Secure Expiration: Expire It utilizes an online server to fetch expiration date and time, ensuring that unauthorized access attempts through local time changes are ineffective.
-
Reliable Server: The expiration information is stored on a reliable online server, making it virtually impossible to manipulate the expiration date and time locally.
-
Easy Integration: Integration of the Expire It feature into your Flutter app is straightforward and hassle-free.
-
Customizable UI: The UI of the Expire It dialog can be customized to seamlessly blend with the design of your app.
How It Works
-
Integration: To integrate ExpireIt into your Flutter app, follow the provided guidelines to add the necessary code and UI elements.
-
Server Communication: The ExpireIt app communicates with an online server to fetch the expiration date and time of the target app.
-
Expiration Dialog: When the specified expiration date and time are reached, ExpireIt will display a dialog within the target app, informing the user that the app has expired and access is no longer available.
Getting Started
To integrate the ExpireIt functionality into your Flutter app, follow these steps:
-
Add Dependency: Add the ExpireIt package as a dependency in your
pubspec.yamlfile:dependencies: expireit: ^0.2.0 -
Import the Package: Import the ExpireIt package in your Dart file:
import 'package:expireit/expireit.dart'; -
Implementation: In your Flutter app's build method, utilize the ExpireIt widget to manage the UI based on expiration status:
ExpireIt( controller: UserDefineExpireController( expiryDate: DateTime(2025), ), expireBuilder: (context) { return const Center( child: Text("Expired"), ); }, builder: (context) { return const Center( child: Text("Home screen"), ); }, loadingBuilder: (context) { return const Center( child: CircularProgressIndicator(), ); }, ), -
Customize UI: Customize the appearance of the expiration dialog and loading indicator to match your app's design.
For a more detailed guide and advanced configuration options, please refer to the ExpireIt documentation.
Compatibility
Requires Flutter version 2.0.0 or higher.
License
ExpireIt is released under the MIT License.
ExpireIt is designed to offer a robust and secure expiration mechanism for Flutter apps, safeguarding your app's usage beyond specified dates and times. If you have any questions, concerns, or feedback, feel free to contact us at raysummee@gmail.com. We are excited to see how ExpireIt enhances the security of your apps!
分类
使用的依赖
依赖清单 4 项
- flutter
{"sdk":"flutter"} - ntp
^2.0.0 - flutter_test开发依赖
{"sdk":"flutter"} - flutter_lints开发依赖
^2.0.0
如何选择适合项目的代码仓?
先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
- 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
- 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
- 使用前在 GitHub 核对 README、许可证与 Issues。
来源与维护
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗