shared_ui_components 0.2.4 copy "shared_ui_components: ^0.2.4" to clipboard
shared_ui_components: ^0.2.4 copied to clipboard

A shared library for `BeWell-Consumer` and `SladeAdvantage` 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
70
pub points
4%
popularity

Publisher

verified publishersavannahghi.org

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

Repository (GitHub)
View/report issues
Contributing

Documentation

Documentation
API reference

License

MIT (LICENSE)

Dependencies

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

More

Packages that depend on shared_ui_components