ex 0.1.9 copy "ex: ^0.1.9" to clipboard
ex: ^0.1.9 copied to clipboard

Powerfull Ex-Material UI (Material UI improvement) | all material widget with functional many helper/utils like `ExHttp, ExLog, ExAlert, ExBottomSheet, ExDialog, ExSnackbar`

Ex #

Just Start with Type : Ex...

not-yet ready for production. (est. 2023 early)

DEMO (WEB) #

https://abehbatre.github.io/ex-preview.github.io/#/


Some Example #

ImagePreview (overlay, pinch, zoom, interactive) like IG #

Screenshot 2022-10-13 at 15 01 34
ExImagePreview.show(
  'https://imageurl.com',
),

ExAlert: #

tipe     : success, error, confirm
example  : https://github.com/abehbatre/ex/blob/master/example/lib/helper_gallery/alert_page.dart

ExBottomSheet: #

tipe     : bottomSheetContentDialog, bottomSheetCustomDialog, bottomSheetListWithSelectedDialog
example  : https://github.com/abehbatre/ex/blob/master/example/lib/helper_gallery/bottomsheet_page.dart

ExDialog #

tipe     : singleInput, custom
example  : https://github.com/abehbatre/ex/blob/master/example/lib/helper_gallery/input_dialog_page.dart

ExSnackbar #

tipe     : neutral, info, warning, success, error, action || top/bottom
example  : https://github.com/abehbatre/ex/blob/master/example/lib/helper_gallery/input_dialog_page.dart

ExLog #

logD('message');
logE('message');
logW('message');
logI('message');

# output
[ExLog] đŸ‘ģ | message
[ExLog] 🔴 | message
[ExLog] 🟠 | message
[ExLog] ℹī¸ | message

ExHttp #

simple example | lets explore more params/option: https://github.com/abehbatre/ex/blob/master/lib/src/core/ex_http.dart

/// `main.dart` (inject)
void main() {
  ...
    Get.put(ExHttp(
      baseURL: 'https://your-api.com',
      baseHeader: {
        'App-ID': 'ex_v_1038',
        'Device-ID': await DeviceInfo().uuid(),
        'Device-Type': Platform.operatingSystem,
      },
    ));
  ...
}


/// repo or provider
class ExampleProvider extends BaseProvider {

  // example with baseURL
  getUsers() async {
    return apiService.httpGet(
      endpoint: '/users',
      header: {},
      query: {},
      withToken: true,
    );
  }

  // example without baseURL
  getTodayQoute() async {
    return apiService.http(
      url: 'https://zenquotes.io/api/today',
      method: Method.GET,
    );
  }
}

/// put on controller
class ExampleController extends BaseController<ExampleProvider> {

  loadAPI() async {
    await provider.getUsers().then((response) {
      print(response.body);
    }).catchError((e) {
      print(e);
    });
  }
}

Screenshoot #

Screenshot 2022-10-13 at 15 04 05 Screenshot 2022-10-13 at 15 03 55 Screenshot 2022-10-13 at 15 03 47 Screenshot 2022-10-13 at 15 03 42 Screenshot 2022-10-13 at 15 03 26 Screenshot 2022-10-13 at 15 03 18 Screenshot 2022-10-13 at 15 03 05 Screenshot 2022-10-13 at 15 02 48 Screenshot 2022-10-13 at 15 02 40 Screenshot 2022-10-13 at 15 02 33 Screenshot 2022-10-13 at 15 02 15 Screenshot 2022-10-13 at 15 02 05 Screenshot 2022-10-13 at 15 01 58 Screenshot 2022-10-13 at 15 01 50 Screenshot 2022-10-13 at 15 01 47 Screenshot 2022-10-13 at 15 01 41 Screenshot 2022-10-13 at 15 01 37 Screenshot 2022-10-13 at 15 01 34 Screenshot 2022-10-13 at 15 01 30 Screenshot 2022-10-13 at 15 01 25 Screenshot 2022-10-13 at 15 01 21 Screenshot 2022-10-13 at 15 01 17 Screenshot 2022-10-13 at 15 00 48 Screenshot 2022-10-13 at 15 00 30
8
likes
0
pub points
41%
popularity

Publisher

unverified uploader

Powerfull Ex-Material UI (Material UI improvement) | all material widget with functional many helper/utils like `ExHttp, ExLog, ExAlert, ExBottomSheet, ExDialog, ExSnackbar`

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

cached_network_image, flutter, flutter_svg, get, http, intl, photo_view, velocity_x

More

Packages that depend on ex