Skip to content

the-best-is-best/tbib_upgrade_app

Repository files navigation

Tbib Upgrade App

Setup

GlobalKey<NavigatorState> _navigatorKey = GlobalKey<NavigatorState>();
TBIBCheckForUpdate.init(_navigatorKey);

how to use

bool newUpdate= TBIBCheckForUpdate.checkForUpdate();

if(newUpdate){
    return;
}
Navigator.push(context, HomeScreen());

force upgrade

bool newUpdate= TBIBCheckForUpdate.forceCheckUpdate();

if(newUpdate){
    return;
}
Navigator.push(context, HomeScreen());

can add your custom upgrader

TBIBCheckForUpdate.customCheckForUpdate(Upgrader())