base_lib_pub 1.1.0 copy "base_lib_pub: ^1.1.0" to clipboard
base_lib_pub: ^1.1.0 copied to clipboard

This is a basic library based on Getx. In order to build applications conveniently and quickly, you can quickly integrate the basic functions needed by general applications.

_Language: Chinese, English

Description #

This is a basic library of Flutter project based on Getx.

In order to build applications conveniently and quickly, you can quickly integrate the basic functions needed by general applications by adding this project dependency.

The original intention of this project is to establish a basic framework library that can be directly cited in multiple projects. In the early days, the base_lib folder was directly copied and pasted between various projects. Later, for the convenience of maintenance and synchronous update, we began to look for a common solution, so this project came into being.

It would be great if someone could get some help in the project.

Come on!

Features #

  1. General project structure;
  2. General page: picture preview (text preview supported) and test page.;
  3. General tools:
    1. Aes encryption and decryption;
    2. Network requests and request logs;
    3. Share;
    4. Crash log;
    5. File operation;
    6. GetxAnimationController;
    7. Picture selector, take photo and picture compression;
    8. Unified log management;
    9. Permission request and verification;
    10. Other general utils;
  4. General basic internationalization (Chinese, English);
  5. General ui:
    1. Cartridge: Support multiple cartridges to customize the closing sequence; Custom animation;
    2. universal loading;;
    3. Common colors and sizes;
  6. General navigation;
  7. General extension:
    1. Log output;
    2. Date formatting;
    3. Rolling controller;
  8. Stay tuned...

Getting started #

  1. Personal open source, limited ability, light spray;
  2. Most of the time, the project is only debugging on individual private Android devices.
  3. If there is any compatibility problem, please email to 420048248@qq.com or use the contact information at the bottom to give feedback;
  4. Based on Flutter 3.13.0, Dart 3.1.0;

Usage #

The entrance is as follows:

import 'package:base_lib_pub/base_lib_pub.dart';

// ...

void main() {
  initBaseApp(
    enableLog: MyConst.isDebug || MyConst.isForceLog,
    unPopRoutes: [Routes.init, Routes.home],
    initWeChat: true,
  );

  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  MyApp({super.key}) {
    /// network util init
    initDio(baseUrl: '');
  }

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      initialRoute: Routes.init,
      getPages: Routes.getPages(),
      // botToast
      builder: toastBuilder,
      navigatorObservers: [toastObserver],
    );
  }
}

Dependency #

  1. Basis: get: ^ 4.6.5
  2. The animation: simple_animations
  3. Toast, loading: bot_toast: ^ 4.0.4
  4. Permission to apply for, check: permission_handler: ^ 10.4.5
  5. Save the images into the photo gallery: image_gallery_saver: ^ 2.0.1
  6. Image loading, see: extended_image: ^ 8.1.0
  7. Imitation WeChat choose image: wechat_assets_picker: ^ 8.7.0, wechat_camera_picker: ^ 4.0.1
  8. Network: dio: ^ 5.3.2
  9. The picture compression: flutter_image_compress: ^ 2.0.3
  10. File operations: path_provider: ^ 2.1.1
  11. The date format: date_format: ^ 2.0.7
  12. Sharing: share_plus: ^ 7.1.0
  13. The waterfall flow, such as custom grid: flutter_staggered_grid_view: ^ 0.7.0
  14. Uri to file path: uri_to_file: ^ 0.2.0
  15. Encryption: encrypt: ^ 5.0.1
  • Please comply with the open source licensing requirements of the dependent project.

Additional information #

3
likes
0
pub points
43%
popularity

Publisher

verified publisherhomedot.space

This is a basic library based on Getx. In order to build applications conveniently and quickly, you can quickly integrate the basic functions needed by general applications.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

bot_toast, date_format, dio, encrypt, extended_image, flutter, flutter_image_compress, flutter_staggered_grid_view, get, image_gallery_saver, path_provider, permission_handler, share_plus, simple_animations, uri_to_file, wechat_assets_picker, wechat_camera_picker

More

Packages that depend on base_lib_pub