flutter_basic_utils 1.0.1
flutter_basic_utils: ^1.0.1 copied to clipboard
The basic utils is used to store some public class methods of flutter.
flutter_basic_utils #
The basic utils is used to store some public class methods of flutter.
Import the library into the project #
dependecies:
flutter_basic_utils: ^1.0.0
Public class method #
library flutter_basic_utils;
import 'dart:convert';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:pull_to_refresh/pull_to_refresh.dart';
import 'package:shared_preferences/shared_preferences.dart';
/// 公共类、颜色资源,字体大小等
part 'const.dart';
/// appbar
part 'appbar_util.dart';
/// 本地缓存
part 'shared_util.dart';
/// 弹窗
part 'dialog_util.dart';
/// 隐藏键盘
part 'hide_keyboard.dart';
/// 图片 rtl-ltr
part 'image_util.dart';
/// log
part 'log_util.dart';
/// 刷新
part 'refresh_util.dart';