icapps_architecture library

Classes

BaseProviderWidget<T extends ChangeNotifier, Theme, Localization>
BaseThemeData
Holder class for the theme base. Fills in basic shared properties
BaseThemeProviderWidget<Theme, Localization>
Bundle
Wrapper for storing generic values based on keys. The contained values are all serializable using platform channels
ChangeNotifierEx
Extended version of the foundation's ChangeNotifier.
CombiningSmartInterceptor
Dio Interceptor implementation which calls the interceptors in the logical order (request in the interceptor order, responses and errors in the reverse order)
ComputePool
A pool of isolate workers that will handle passed work. Using a compute pool will greatly reduce the dart isolate startup overhead
ConnectivityHelper
Helper to determine if a device has connectivity
DisposeAware
FadeInRoute<T>
Page route that fades in the child page
KeyValueCache<K, V>
A cache implementation that caches values based on keys
LifecycleWidget
Helper widget for reacting to lifecycle events. This widget listens to changes in the AppLifecycleState.
Log
LoggerLogImpl
LoggingConfiguration
LoggingFactory
OsInfo
Helper class containing information about the OS that the app is currently running on
PrefixLogger
ResponsiveWidget
Widget that builds different UIs based on device characteristics
Restorable
Base class for restorable change view models
RestorableViewModelHolder<T extends Restorable>
Holder class for restorable view models, use with the flutter restoration framework (See RestorationMixin). The contained viewModel can change at any time, that's why it is usually wrapped in a builder that listens for changes. Eg: AnimatedBuilder.
RippleTouchEffect
SharedPreferenceStorage
Utility class to facilitate storing shared preferences
SimpleInterceptor
Base class for simple Dio interceptors to be used in conjunction with CombiningSmartInterceptor.
SimpleKeyValueStorage
Simple abstraction for saving / retrieving string values based on string key
SingleValueCache<T>
Simple single-value cache with an optional maxAge expiration time for cached items
SizeInformation
Device/screen information holder
StreamControllerWithInitialValue<T>
TouchEffectInfo
TouchFeedBack
Helper class for platform-specific touch feedback
VoidLogger
WrappingOutput

Enums

DeviceScreenType
The type of device screen

Constants

androidDarkRippleColor → const Color
androidDarkTapColor → const Color
androidLightRippleColor → const Color
androidLightTapColor → const Color
iosDarkTapColor → const Color
iosLightTapColor → const Color
isInDebug → const bool
Returns true if the current code is executing in debug mode
isInProfile → const bool
Returns true if the current code is executing in profile mode
isInRelease → const bool
Returns true if the current code is executing in release mode

Properties

isDeviceAndroid bool
final
isDeviceIOS bool
final
isInTest bool
Returns true if the code is currently being execute by unit tests
no setter
localizationLookup ↔ Localization Function<Localization>(BuildContext context)
getter/setter pair
staticLogger Log
no setter
themeLookup ↔ Theme Function<Theme>(BuildContext context)
getter/setter pair

Functions

await2<A, B>(Future<A> a, Future<B> b) Future<Tuple2<A, B>>
Waits for both futures and returns a future containing a Tuple2 with the results of both futures
await3<A, B, C>(Future<A> a, Future<B> b, Future<C> c) Future<Tuple3<A, B, C>>
Waits for all futures and returns a future containing a Tuple3 with the results of all futures
await4<A, B, C, D>(Future<A> a, Future<B> b, Future<C> c, Future<D> d) Future<Tuple4<A, B, C, D>>
Waits for all futures and returns a future containing a Tuple4 with the results of all futures
await5<A, B, C, D, E>(Future<A> a, Future<B> b, Future<C> c, Future<D> d, Future<E> e) Future<Tuple5<A, B, C, D, E>>
Waits for all futures and returns a future containing a Tuple5 with the results of all futures
await6<A, B, C, D, E, F>(Future<A> a, Future<B> b, Future<C> c, Future<D> d, Future<E> e, Future<F> f) Future<Tuple6<A, B, C, D, E, F>>
Waits for all futures and returns a future containing a Tuple6 with the results of all futures
await7<A, B, C, D, E, F, G>(Future<A> a, Future<B> b, Future<C> c, Future<D> d, Future<E> e, Future<F> f, Future<G> g) Future<Tuple7<A, B, C, D, E, F, G>>
Waits for all futures and returns a future containing a Tuple7 with the results of all futures

Typedefs

ComputeCallback<Q, R> = FutureOr<R> Function(Q message)

Exceptions / Errors

NetworkError
Base class for network errors