at_common_flutter 0.0.4
at_common_flutter: ^0.0.4 copied to clipboard

A flutter package to provide common widgets used by other atsign flutter packages.

Now for some internet optimism. #

at_common_flutter #

A Flutter package to provide custom widgets for other atsign packages.

Getting Started #

This plugin can be added to the project as git dependency in pubspec.yaml

dependencies:
  at_common_flutter: ^0.0.4

Plugin description #

This package provides the following custom widgets:

CustomAppBar

    return Scaffold(
      appBar: CustomAppBar(
        showBackButton: false,
        showTitle: true,
        titleText: widget.title,
        onTrailingIconPressed: () {
          print('Trailing icon of appbar pressed');
        },
        showTrailingIcon: true,
        trailingIcon: Center(
          child: Icon(
            Icons.add,
            color: Theme.of(context).brightness == Brightness.light
                ? Colors.black
                : Colors.white,
          ),
        ),
      ),
    );

CustomButton

CustomButton(
    height: 50.0,
    width: 200.0,
    buttonText: 'Add',
    onPressed: () {
    print('Custom button pressed');
    },
    buttonColor: Theme.of(context).brightness == Brightness.light
        ? Colors.black
        : Colors.white,
    fontColor: Theme.of(context).brightness == Brightness.light
        ? Colors.white
        : Colors.black,
),

CustomInputField

CustomInputField(
    icon: Icons.emoji_emotions_outlined,
    width: 200.0,
    initialValue: "initial value",
    value: (String val) {
    print('Current value of input field: $val');
    },
),

SizeConfig service

This service is used to adjust height of widget based upon the screen size. This service needs to be initialised before usage.

import 'package:at_common_flutter/at_common_flutter.dart' as CommonWidgets;

CommonWidgets.SizeConfig().init(context);
2
likes
90
pub points
72%
popularity

Publisher

atsign.org

A flutter package to provide common widgets used by other atsign flutter packages.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on at_common_flutter