abk_flutter_utils 0.0.4
abk_flutter_utils: ^0.0.4 copied to clipboard
A Flutter package providing utilities for networking, storage, logging, and optional Firebase initialization.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add abk_flutter_utils
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
abk_flutter_utils: ^0.0.4
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:abk_flutter_utils/app/di/locator.dart';
import 'package:abk_flutter_utils/app/my_app.dart';
import 'package:abk_flutter_utils/app/navigation/app_router.dart';
import 'package:abk_flutter_utils/app/navigation/app_routes.dart';
import 'package:abk_flutter_utils/cores/constants/api_endpoints.dart';
import 'package:abk_flutter_utils/cores/constants/app_constants/regex.dart';
import 'package:abk_flutter_utils/cores/constants/app_constants/ui_constants.dart';
import 'package:abk_flutter_utils/cores/constants/index.dart';
import 'package:abk_flutter_utils/cores/failure/failure.dart';
import 'package:abk_flutter_utils/cores/firebase/firebase_initializer.dart';
import 'package:abk_flutter_utils/cores/firebase/firebase_services.dart';
import 'package:abk_flutter_utils/cores/l10n/app_localizations.dart';
import 'package:abk_flutter_utils/cores/l10n/app_localizations_ar.dart';
import 'package:abk_flutter_utils/cores/l10n/app_localizations_en.dart';
import 'package:abk_flutter_utils/cores/network/api_services.dart';
import 'package:abk_flutter_utils/cores/network/dio_factory.dart';
import 'package:abk_flutter_utils/cores/network/interceptors.dart';
import 'package:abk_flutter_utils/cores/notification/fcm_service.dart';
import 'package:abk_flutter_utils/cores/reusable_widgets/custom_app_bar.dart';
import 'package:abk_flutter_utils/cores/reusable_widgets/custom_buttons/custom_button.dart';
import 'package:abk_flutter_utils/cores/reusable_widgets/custom_buttons/custom_outline_button.dart';
import 'package:abk_flutter_utils/cores/reusable_widgets/custom_buttons/custom_text_button.dart';
import 'package:abk_flutter_utils/cores/reusable_widgets/custom_image.dart';
import 'package:abk_flutter_utils/cores/reusable_widgets/custom_snack_bar.dart';
import 'package:abk_flutter_utils/cores/reusable_widgets/custom_spacing/horizontal_spacing.dart';
import 'package:abk_flutter_utils/cores/reusable_widgets/custom_spacing/vertical_spacing.dart';
import 'package:abk_flutter_utils/cores/reusable_widgets/custom_text_fields/custom_email_text_field.dart';
import 'package:abk_flutter_utils/cores/reusable_widgets/custom_text_fields/custom_password_text_field.dart';
import 'package:abk_flutter_utils/cores/reusable_widgets/custom_text_fields/custom_text_field.dart';
import 'package:abk_flutter_utils/cores/state_managment/bloc_observer.dart';
import 'package:abk_flutter_utils/cores/storage/cache_storage.dart';
import 'package:abk_flutter_utils/cores/storage/secure_storage.dart';
import 'package:abk_flutter_utils/cores/theme/app_theme.dart';
import 'package:abk_flutter_utils/cores/theme/dark_theme.dart';
import 'package:abk_flutter_utils/cores/theme/light_theme.dart';
import 'package:abk_flutter_utils/main.dart';