arna 0.0.5 copy "arna: ^0.0.5" to clipboard
arna: ^0.0.5 copied to clipboard

outdated

Arna framework and widgets for Flutter.

Arna #

Arna framework and widgets for Flutter.

Content #

Getting Started #

Add Arna as a dependency in your pubspec.yaml

dependencies:
  arna: ^0.0.5

And import it

import 'package:arna/arna.dart';

Usage #

Arna App #

ArnaApp(
    debugShowCheckedModeBanner: false,
    home: Home(),
);

Arna Scaffold #

ArnaScaffold(
    headerBarLeading: ArnaIconButton(
        icon: Icons.add_outlined,
        onPressed: () {},
    ),
    title: "Title",
    headerBarTrailing: ArnaIconButton(
        icon: Icons.info_outlined,
        onPressed: () {},
    ),
    body: Container(),
);

Arna Side Scaffold #

ArnaSideScaffold(
    headerBarLeading: ArnaIconButton(
        icon: Icons.add_outlined,
        onPressed: () {},
    ),
    title: "Title",
    headerBarTrailing: ArnaIconButton(
        icon: Icons.info_outlined,
        onPressed: () {},
    ),
    items: [
        NavigationItem(
          title: "Dummy",
          icon: Icons.info_outlined,
          builder: (_) => Container(),
        ),
        NavigationItem(
          title: "Dummy",
          icon: Icons.info_outlined,
          builder: (_) => Container(),
        ),
    ],
);

Arna Master Detail Scaffold #

ArnaMasterDetailScaffold(
    headerBarLeading: ArnaIconButton(
        icon: Icons.add_outlined,
        onPressed: () {},
    ),
    title: "Title",
    headerBarTrailing: ArnaIconButton(
        icon: Icons.info_outlined,
        onPressed: () {},
    ),
    emptyBody : Container(),
    items: [
        MasterNavigationItem(
          title: "Title 1",
          subtitle: "Subtitle 1",
          builder: (_) => Container(),
        ),
        MasterNavigationItem(
          title: "Title 2",
          subtitle: "Subtitle 2",
          builder: (_) => Container(),
        ),
    ],
);

Arna Button #

ArnaButton(
    title: "Add",
    icon: Icons.add_outlined,
    onPressed: () {},
);

Arna Icon Button #

ArnaIconButton(
    icon: Icons.add_outlined,
    onPressed: () {},
);

Arna Text Button #

ArnaTextButton(
    title: "Add",
    onPressed: () {},
);

Arna Linked Buttons #

ArnaLinkedButtons(
    buttons: [
        ArnaLinkedButton(
            title: "Add",
            icon: Icons.add_outlined,
            onPressed: () {},
        ),
        ArnaLinkedIconButton(
            icon: Icons.add_outlined,
            onPressed: () {},
        ),
        ArnaLinkedTextButton(
            title: "Add",
            onPressed: () {},
        ),
    ],
);

Arna CheckBox #

ArnaCheckBox(
    value: _throwShotAway,
    onChanged: (bool? newValue) => setState(() => _throwShotAway = newValue!),
);

Arna CheckBox List Tile #

ArnaCheckBoxListTile(
    value: _throwShotAway,
    title: "Title",
    subtitle: "Subtitle",
    onChanged: (bool? newValue) => setState(() => _throwShotAway = newValue!),
    trailingButton: ArnaIconButton(
        icon: Icons.add_outlined,
        onPressed: () {},
    ),
);

Arna Radio #

ArnaRadio<SingingCharacter>(
    value: SingingCharacter.lafayette,
    groupValue: _character,
    onChanged: (SingingCharacter newValue) => setState(() => _character = newValue),
);

Arna Radio List Tile #

ArnaRadioListTile<SingingCharacter>(
    value: SingingCharacter.lafayette,
    groupValue: _character,
    title: "Title",
    subtitle: "Subtitle",
    onChanged: (SingingCharacter newValue) => setState(() => _character = newValue),
    trailingButton: ArnaIconButton(
        icon: Icons.add_outlined,
        onPressed: () {},
    ),
);

Arna Switch #

ArnaSwitch(
    value: _giveVerse,
    onChanged: (bool newValue) => setState(() => _giveVerse = newValue),
);

Arna Switch List Tile #

ArnaSwitchListTile(
    value: _giveVerse,
    title: "Title",
    subtitle: "Subtitle",
    onChanged: (bool newValue) => setState(() => _giveVerse = newValue),
    trailingButton: ArnaIconButton(
        icon: Icons.add_outlined,
        onPressed: () {},
    ),
);

Arna List #

ArnaList(
    title: "Title",
    items: [
        ArnaListTile(
            title: "Title 1",
            subtitle: "Subtitle 1",
            trailing: ArnaBadge(title: "Badge 1"),
            onTap: () {},
        ),
        ArnaListTile(
            title: "Title 2",
            subtitle: "Subtitle 2",
            trailing: ArnaBadge(title: "Badge 2"),
        ),
    ],
);

Arna Card #

ArnaCard(
    height: 200,
    width: 200,
    child: Container(),
);

Arna Badge #

ArnaBadge(title: "Title");

Arna Dividers #

ArnaHorizontalDivider();
ArnaVerticalDivider();

Arna Separators #

ArnaHorizontalSeparator();
ArnaVerticalSeparator();

Arna PopupDialog #

ArnaIconButton(
    icon: Icons.info_outlined,
    onPressed: () => showArnaPopupDialog(
        context: context,
        title: "Title",
        body: Container(),
    ),
);

Arna Dialog #

ArnaIconButton(
    icon: Icons.info_outlined,
    onPressed: () => ArnaDialog(
        context: context,
        barrierDismissible: true,
        builder: (_) => ArnaAlertDialog(
            title: "Title",
            message: "Message",
            primary: ArnaTextButton(
                title: "OK",
                onPressed: Navigator.of(context).pop,
            )
        ),
    ),
);

Special thanks #

53
likes
0
pub points
59%
popularity

Publisher

unverified uploader

Arna framework and widgets for Flutter.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on arna