Protected Work

A Flutter package that helps you to remotely control the usability of your app.


Wrap your app's builder widget in a ProtectedWork, provide a url and blockResponse. ProtectedWork will send a GET request to url every checkInterval, if the response is equal to blockResponse, blockMessage will be displayed instead of child.

import 'package:flutter/material.dart';
import 'package:flutter_protected_work/flutter_protected_work.dart';

void main() {

class MyApp extends StatelessWidget {
  const MyApp({Key key}) : super(key: key);

  Widget build(BuildContext context) {
    return MaterialApp(
      builder: (context, child) {
        return ProtectedWork(
          url: '',
          blockResponse: 'blockTheApp',
          blockMessage: 'A UFO arrived and made the app unusable',
          checkInterval: const Duration(minutes: 5),
          child: child,