faded 1.1.0 faded: ^1.1.0 copied to clipboard
Client did not pay? Add opacity to UI components and decrease it every day until their app completely fades away. Set a due date and customize the number of days you offer them until the app is fully vanished.
import 'package:faded/faded.dart';
import 'package:flutter/material.dart';
void main() {
runApp(Faded(
// Due date should be in yyyy-mm-dd format
dueDate: '2022-01-15',
daysDeadline: 12,
child: MyApp(),
));
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Faded!'),
),
body: Container(
color: Colors.red,
child: Center(
child: Text(
"Fade.. fade away...",
style: Theme.of(context)
.textTheme
.bodyText1
.copyWith(color: Colors.white),
),
),
),
),
);
}
}