shared_ui_components 0.1.40-nullsafety copy "shared_ui_components: ^0.1.40-nullsafety" to clipboard
shared_ui_components: ^0.1.40-nullsafety copied to clipboard

outdated

A shared library for `BeWell-Consumer` and `BeWell-Professional` that is responsible for rendering and exposing dumb widgets and ui components

example/main.dart

import 'package:flutter/material.dart';
import 'package:shared_ui_components/src/buttons.dart';

void main() {
  runApp(AWidgetInYourApp());
}

class AWidgetInYourApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SizedBox(
        // SILPrimaryButton is one among many other UI components provided to you by this pkg
        // For more arguments or customization options for this and other UI Components, check project source files (`./lib/src/`)
        child: SILPrimaryButton(
          buttonKey: const Key('your_button_key'),
          text: 'Button Text',
          borderColor: Colors.black, // your button's border color
          buttonColor: Colors.black, // your button's fill color
          textColor: Colors.white, // your button's text color
          customChild: const Icon(Icons.add, size: 30, color: Colors.white,), // Used when adding a custom child instead of a text widget
          onPressed: (){},
          onLongPress: () {},
        ),
      ),
    );
  }
}
3
likes
0
pub points
5%
popularity

Publisher

verified publishersavannahghi.org

A shared library for `BeWell-Consumer` and `BeWell-Professional` that is responsible for rendering and exposing dumb widgets and ui components

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

flutter, flutter_spinkit, flutter_svg, http, intl, material_design_icons_flutter, misc_utilities, pin_code_text_field, rxdart, shared_themes, sms_autofill

More

Packages that depend on shared_ui_components