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.

example/lib/main.dart

import 'package:base_lib_pub/base_lib_pub.dart';
import 'package:base_lib_pub_example/route/routes.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

void main() {
  initBaseApp(
    enableLog: true,
    unPopRoutes: [Routes.init, Routes.home],
    initWeChat: true,
  );
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  MyApp({super.key}) {
    /// 初始化网络请求
    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],
    );
  }
}
3
likes
0
pub points
21%
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