sellon_dev

A new Flutter package.

Getting Started

This project for Sellon apps making easer for development.

you can contact me if you have question.

sellon.net

Usage


// config
    Config.domainConfigProd = "asas.net";
    Config.domainConfigDev = "asas.net";
    Config.idGame = "7aaxxxx";
    Config.openApi = true;
    Config.environment = Env.development;
    Config.loadingpresent = 0;
    Config.developerMode = true;
    
// router
    SellonRouter.push(context,widget);
    SellonRouter.pop(context);
    SellonRouter.pop(context,datapop: dynamic);
    
// call api     
     ApiSellon api = ApiSellon(context);
     api.execute(method, SellonMethod.post, parameter, (response) {
        var data = response.data()['data'];
     })
     api.setErrorListener((derror) {
        Ui(context).errorAlert(message: derror.errMessage, duration: 3);
     });