afya_moja_core 0.0.24 afya_moja_core: ^0.0.24 copied to clipboard
A shared library for `afyamoja` and `myafyahub` that is responsible for rendering and exposing shared components
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add afya_moja_core
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
afya_moja_core: ^0.0.24
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:afya_moja_core/buttons.dart';
import 'package:afya_moja_core/checkbox_component.dart';
import 'package:afya_moja_core/colors.dart';
import 'package:afya_moja_core/community_list_item.dart';
import 'package:afya_moja_core/custom_confirm_dialog.dart';
import 'package:afya_moja_core/custom_text_field.dart';
import 'package:afya_moja_core/domain/core/entities/icon_details.dart';
import 'package:afya_moja_core/domain/core/entities/icon_details.freezed.dart';
import 'package:afya_moja_core/domain/core/entities/icon_details.g.dart';
import 'package:afya_moja_core/domain/core/entities/notification_actions.dart';
import 'package:afya_moja_core/domain/core/entities/notification_actions.freezed.dart';
import 'package:afya_moja_core/domain/core/entities/notification_actions.g.dart';
import 'package:afya_moja_core/information_list_card.dart';
import 'package:afya_moja_core/inputs.dart';
import 'package:afya_moja_core/notification_list_item.dart';
import 'package:afya_moja_core/onboarding_scaffold.dart';
import 'package:afya_moja_core/phone_input.dart';
import 'package:afya_moja_core/search_widget.dart';
import 'package:afya_moja_core/selection_option_field.dart';
import 'package:afya_moja_core/user_details_card_widget.dart';