not_paid 1.0.0 copy "not_paid: ^1.0.0" to clipboard
not_paid: ^1.0.0 copied to clipboard

Flutter package to hide out whole application or sections if you are not paid for the job done.

not_paid #

Worried about your payment? Using this package you can provide a non paid version of your app to the client that consistently starts fading out the app/sections after the due date, and fades it out completly when the deadline is exceeded.

Supported Dart Versions #

Dart SDK version >= 2.1.0

Demo #

Before due date demo After due date(mid deadline) demo Deadline exceeded demo

Installation #

Pub

Add the Package

dependencies:
  not_paid: ^1.0.0
copied to clipboard

How to use #

Import the package in your dart file

import 'package:not_paid/not_paid.dart';
copied to clipboard

Wrap the widget which ever you want to fade out under the NotPaid widget. To fade out the whole app just wrap your material app inside the NotPaid widget.

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return NotPaid(
      // Due date after which the app fading starts.
      dueDate: DateTime(2020, 6, 1),
      // As this deadline day reaches the app completely fades away.
      deadlineDays: 10,
      child: MaterialApp(
        title: 'Not-Paid Demo',
        debugShowCheckedModeBanner: false,
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: DemoPage(title: 'Not Paid Demo Page'),
      ),
    );
  }
}
copied to clipboard

Required params #

These are the basic params required by NotPaid widget.

Params Type
dueDate DateTime
deadlineDays int
child Widget

Inspire from #

not-paid by @kleampa

Created & Maintained By #

Harpreet Singh

Damanpreet Singh

License #

Copyright 2020 Harpreet Singh & Damanpreet Singh

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
copied to clipboard
9
likes
40
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.22 - 2025.04.06

Flutter package to hide out whole application or sections if you are not paid for the job done.

Repository (GitHub)

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on not_paid