vasclib 0.1.0 copy "vasclib: ^0.1.0" to clipboard
vasclib: ^0.1.0 copied to clipboard

Vasclib by Vascomm Mobile Development Team

Vasclib by Vascomm Mobile Development Team.

Features #

Provides several frequently used utilities, as follows:

  • Base State
  • Base Form State
  • Validator
  • Check Status Resp
  • Navigator
  • Utils
    • String Extension
    • Num Extension
  • Styles
    • App Colors
    • App Text Style
    • App Button Style
    • App Field Style
  • Widgets
    • Default Dialog Loading
    • Default Dialog
    • Default Modal Bottom

Getting started #

To get started you need to do the following setup:

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await ConfigureVasclib();
  const ProviderScope(child: MyApp());
}

Usage #

You can change several configurations like the following example

Future setupVascLib() async {
  await ConfigureVasclib();
  checkStatusResp.codeInvalidSession = '69';
  checkStatusResp.replaceLoginScreen = const LoginScreen();
  setupLightColor();
}
void setupLightColor() {
  appColors
    ..backgroundPrimary = const Color(0xFFFFFFFF)
    ..textPrimary = const Color(0xFF474F50)
    ..textHint = const Color(0xffCCCCCC)
    ..card = const Color(0xA8F3F3F3)
    ..fieldBackground = const Color(0xA8F3F3F3)
    ..fieldBorder = const Color(0xffB4B5B9)
    ..separator = const Color(0xffE4E4E4);
}

Default App Colors

class AppColors {
  Color primary = const Color(0xff006241);
  Color secondary = const Color(0xffcba258);

  Color backgroundPrimary = const Color(0xffffffff);
  Color backgroundSecondary = const Color(0xffE4F3F2);
  Color card = const Color(0xA8F3F3F3);

  Color textPrimary = const Color(0xFF474F50);
  Color textSecondary = const Color.fromARGB(255, 86, 108, 110);
  Color textHint = const Color(0xffCCCCCC);
  Color textError = const Color(0xffd62b1f);

  Color fieldBackground = const Color(0xA8F3F3F3);
  Color fieldBorder = const Color(0xffB4B5B9);
  Color fieldFocusBorder = const Color(0xff006241);
  Color fieldError = const Color(0xffd62b1f);

  Color buttonPrimary = const Color(0xffcba258);
  Color buttonSecondary = const Color(0xffcba258);

  Color indicatorLoading = const Color(0xffcba258);
  Color separator = const Color(0xffE4E4E4);

  Color white = const Color(0xffffffff);
  Color black = const Color(0xFF000000);
}

Additional information #

For further information you can contact this email
Vascomm Mobile Development
mobile.vascomm@gmail.com

3
likes
80
pub points
28%
popularity

Publisher

unverified uploader

Vasclib by Vascomm Mobile Development Team

Homepage
Repository

Documentation

API reference

License

MIT (LICENSE)

Dependencies

dio, flutter, get_it, injectable, intl, mask_text_input_formatter, pattern_formatter, shared_preferences

More

Packages that depend on vasclib