v_base library

FileName v_base

@Author wzp_vicky @Date 2024/7/6 22:53

@Description 关于A项目依赖(B(package)依赖c(package))的类导包问题,具体查看飞书笔记

Classes

AnyNotifier<StateT, ValueT> Notifiers
A base class for all "notifiers".
AppDialog
@author:wzp_vicky @time:2022年11月3日14:48:11 @version: V2.0 @description 最早来自photoai项目,正式纳入框架是3.x框架创建。主要功能就是创建出类似退出登录的提示框 这一版是修改部分属性。 说明:使用时,类似重庆公运,退出的时候没有提示那个title,如果不需要的话,title可以传“”,这个时候title还有30的padding; 内容采取自定义的,给内容设置30的下边框,可使样式稍微顺眼点,后续如果对这个求精的话再改
AppException
自定义异常
AsyncData<ValueT> Core
Creates an AsyncValue with a data.
AsyncError<ValueT> Core
Creates an AsyncValue in the error state.
AsyncLoading<ValueT> Core
Creates an AsyncValue in loading state.
AsyncNotifier<StateT> Notifiers
A Notifier implementation that is asynchronously initialized.
AsyncNotifierProvider<NotifierT extends AsyncNotifier<ValueT>, ValueT> Providers
A provider which creates and listen to an AsyncNotifier.
AsyncResult<ValueT>
A variant of AsyncValue that excludes AsyncLoading.
AsyncValue<ValueT> Core
A utility for safely manipulating asynchronous data.
BadRequestException
请求错误
BasePage
ColorsUtil
CommonAppbarUtil
CommonBasePageState<T extends BasePage>
Consumer Core
Build a widget tree while listening to providers.
ConsumerState<WidgetT extends ConsumerStatefulWidget> Core
The State for a ConsumerStatefulWidget.
ConsumerStatefulWidget Core
A StatefulWidget that has a State capable of reading providers.
ConsumerWidget Core
The equivalent of a StatelessWidget that can listen to providers.
DottedScaleXWidget
FormData
A class to create readable "multipart/form-data" streams. It can be used to submit forms and file uploads to http server.
FutureProvider<ValueT> Providers
A provider that asynchronously creates a value.
HttpDioConfig
LoadingConfig
Notifier<ValueT> Notifiers
A class which exposes a state that can change over time.
NotifierProvider<NotifierT extends Notifier<ValueT>, ValueT> Providers
A provider that exposes a synchronous Notifier.
PageMixins
Permission
Defines the permissions which can be checked and requested.
PermissionsHelper
PermissionWithService
A special kind of permission, used to access a service.
Provider<ValueT> Providers
A provider that exposes a read-only value.
ProviderContainer Core
An object that stores the state of the providers and allows overriding the behavior of a specific provider.
ProviderObserver Core
An object that listens to the changes of a ProviderContainer.
ProviderObserverContext Core
Information about the ProviderObserver event.
ProviderScope Core
A widget that stores the state of providers.
ProviderSubscription<OutT> Core
Represents the subscription to a ProviderListenable.
Ref Core
An object used by providers to interact with other providers and the life-cycles of the application.
ReponseConfig
ReponseConfigUtils
RingPainter
ScaleYWidget
SpinKitChasingDots
SpinKitCircle
SpinKitCubeGrid
SpinKitDancingSquare
SpinKitDoubleBounce
SpinKitDualRing
SpinKitFadingCircle
SpinKitFadingCube
SpinKitFadingFour
SpinKitFadingGrid
SpinKitFoldingCube
SpinKitHourGlass
SpinKitPianoWave
SpinKitPouringHourGlass
SpinKitPouringHourGlassRefined
SpinKitPulse
SpinKitPulsingGrid
SpinKitPumpCurve
SpinKitPumpingHeart
SpinKitRing
SpinKitRingCurve
SpinKitRipple
SpinKitRotatingCircle
SpinKitRotatingPlain
SpinKitSpinningCircle
SpinKitSpinningLines
SpinKitSquareCircle
SpinKitThreeBounce
SpinKitThreeInOut
SpinKitWanderingCubes
SpinKitWave
SpinkitWaveCustomPaint
SpinKitWaveSpinner
SpinningLinesPainter
StreamNotifier<ValueT> Notifiers
A variant of AsyncNotifier which has build creating a Stream.
StreamNotifierProvider<NotifierT extends StreamNotifier<ValueT>, ValueT> Providers
A provider which creates and listen to an StreamNotifier.
StreamProvider<ValueT> Providers
Creates a stream and exposes its latest event.
TextStyleUtils
ToastUtils
UnauthorisedException
未认证异常
UncontrolledProviderScope Core
Expose a ProviderContainer to the widget tree.
VBaseUtils
FileName base_utils
VBFPermissionHelper
FileName permission_request
VFBaseTextDelegate
VFEnglishTextDelegate
VFFrenchTextDelegate
VFHantTextDelegate
VFJapaneseTextDelegate
VFKoreanTextDelegate
VFTextDelegateHelper
VLog
WidgetRef Core
An object that allows widgets to interact with providers.

Enums

PermissionStatus
Defines the state of a Permission.
ServiceStatus
Defines the different states a service can be in.
SpinKitPianoWaveType
SpinKitWaveType

Extensions

AsyncValueExtensions on AsyncValue<ValueT>
Adds non-state related methods/getters to AsyncValue.
FuturePermissionStatusGetters on Future<PermissionStatus>
Utility getter extensions for the Future<PermissionStatus> type.
FutureServiceStatusGetters on Future<ServiceStatus>
Utility getter extensions for the Future<ServiceStatus> type.
PermissionActions on Permission
Actions that can be executed on a permission.
PermissionCheckShortcuts on Permission
Shortcuts for checking the status of a Permission.
PermissionListActions on List<Permission>
Actions that can be taken on a List of Permissions.
PermissionStatusGetters on PermissionStatus
Utility getter extensions for the PermissionStatus type.
ProviderListenableSelect on ProviderListenable<InT>
Adds select to ProviderListenable.
RiverpodWidgetTesterX on WidgetTester
Widget testing helpers for flutter_riverpod.
ServicePermissionActions on PermissionWithService
Actions that apply only to permissions that have an associated service.
ServiceStatusGetters on ServiceStatus
Utility getter extensions for the ServiceStatus type.

Properties

logger → Logger
final

Functions

convert2GetFormData(Map params, {String fileKey = "file"}) FormData?
@author:wzp_vicky @time:2024年11月12日13:43:06 @version: V1 @description 针对上传file MultipartFile的场景 如dio官方所述:https://github.com/cfug/dio/blob/main/dio/README-ZH.md#%E9%80%9A%E8%BF%87-formdata-%E4%B8%8A%E4%BC%A0%E5%A4%9A%E4%B8%AA%E6%96%87%E4%BB%B6 按照他的方法我们可以看见file的content-type和mimetype都是 ---> application/octet-stream 如果后端强制校验了:eg:图片是image/jpeg那直接使用dio官方的方式就不行了,所以这里做一个统一的处理 请注意这个入口方法没有没有按照小程序的分成filePath和formData,考虑到分开可能需要new多个map就算了 且小程序是单个上传 我这个支持多个,就搞成这种吧
openAppSettings() Future<bool>
Opens the app settings page.
printWithSystemMethod(String message) → dynamic