faded 2.0.0 faded: ^2.0.0 copied to clipboard
Client did not pay? Add decreasing opacity to UI components until their app fades away. Set a due date, and no. 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(
dueDate: DateTime(2024, 04, 21),
daysDeadline: 2,
child: MyApp(),
));
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
backgroundColor: Colors.white,
appBar: AppBar(
title: Text('Faded!'),
),
body: Container(
color: Colors.red,
child: Center(
child: Text(
"Fade.. fade away...",
style: Theme.of(context)
.textTheme
.bodyLarge
?.copyWith(color: Colors.white),
),
),
),
),
);
}
}