at_common_flutter 1.0.1 copy "at_common_flutter: ^1.0.1" to clipboard
at_common_flutter: ^1.0.1 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: ^1.0.0

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);
9
likes
120
pub points
64%
popularity

Publisher

verified publisheratsign.org

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

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, pedantic

More

Packages that depend on at_common_flutter