All Projects → aloisdeniel → sleek_button

aloisdeniel / sleek_button

Licence: other
A simple but yet customizable button.

Programming Languages

dart
5743 projects
HTML
75241 projects
kotlin
9241 projects
swift
15916 projects
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to sleek button

react-native-flat-button
Flat button component for react-native
Stars: ✭ 26 (-58.73%)
Mutual labels:  button, flat
Aiflatswitch
Nicely animated flat design switch alternative to UISwitch
Stars: ✭ 904 (+1334.92%)
Mutual labels:  button, flat
Flutter Neumorphic
A complete, ready to use, Neumorphic ui kit for Flutter, 🕶️ dark mode compatible
Stars: ✭ 988 (+1468.25%)
Mutual labels:  button, flat
vue-loading-button
👇 Vue button with slideout loading indicator
Stars: ✭ 39 (-38.1%)
Mutual labels:  button
smart-webcomponents-community
Material & Bootstrap Web Components built with Smart
Stars: ✭ 30 (-52.38%)
Mutual labels:  button
logger
☠ 😈 👀 Simple,Secure & Undetected (6.11.2017) keylogger for Windows :)
Stars: ✭ 37 (-41.27%)
Mutual labels:  simple
dhtml2pdf
Simple, free and very easy to use PHP API that allows you to see, download or get the binary of the PDF generated from the HTML of an URL.
Stars: ✭ 27 (-57.14%)
Mutual labels:  simple
CalDOM
An agnostic, reactive & minimalist (3kb) JavaScript UI library with direct access to native DOM.
Stars: ✭ 176 (+179.37%)
Mutual labels:  simple
plume2
🚀a lightweight React state container for web and app
Stars: ✭ 74 (+17.46%)
Mutual labels:  simple
btnx-config
btnx-config is a configuration tool for btnx (Button Extension). It allows the user to send keyboard combinations or execute commands with mouse buttons. btnx-config provides mouse and button detection, and an easy way to configure btnx's behavior. See https://github.com/cdobrich/btnx/ for btnx.
Stars: ✭ 47 (-25.4%)
Mutual labels:  button
simple-style
My simple style hugo theme, based on <https://yanlinlin82.github.io/webpage-templates/simple-style/index.html>
Stars: ✭ 25 (-60.32%)
Mutual labels:  simple
flat-server
A Node.js server for the Agora Flat open source classroom.
Stars: ✭ 488 (+674.6%)
Mutual labels:  flat
simple blockchain
Blockchain code made simple.
Stars: ✭ 24 (-61.9%)
Mutual labels:  simple
Frontend-Learning-Journey
Tutorials, definitions, frameworks and some of the projects i made when starting to learn frontend web developement
Stars: ✭ 28 (-55.56%)
Mutual labels:  simple
bootstrap-directional-buttons
Directional / Arrow buttons for Bootstrap
Stars: ✭ 18 (-71.43%)
Mutual labels:  button
captouch
👇 Add capacitive touch buttons to any FPGA!
Stars: ✭ 96 (+52.38%)
Mutual labels:  button
aria-switch-control
ARIA Switch control component
Stars: ✭ 38 (-39.68%)
Mutual labels:  button
lwpkt
Lightweight packet protocol structure for multi-device communication focused on RS-485
Stars: ✭ 71 (+12.7%)
Mutual labels:  simple
Recon
HA LDAP based key/value solution for projects configuration storing with multi master replication support
Stars: ✭ 12 (-80.95%)
Mutual labels:  simple
mocha-simple-html-reporter
Simple HTML reporter for Mocha
Stars: ✭ 16 (-74.6%)
Mutual labels:  simple

A simple but yet customizable button.

Install

Add the dependency to your pubspec.yaml :

dependencies:
    sleek_button: <version>

Quick start

SleekButton(
    onTap: () {
        print('tapped!');
    },
    style: SleekButtonStyle.flat(
        color: swatch.primary,
        inverted: true,
        rounded: true,
        size: SleekButtonSize.big,
        context: context,
    ),
    child: const Icon(Icons.format_bold),
)

Usage

Widget

SleekButton(
    onTap: () {
        print('tapped!');
    },
    style: <style>
    child: const Text('Save'),,
)
SleekButton(
    onTap: () {
        print('tapped!');
    },
    style: <style>
    child: Row(
        mainAxisSize: MainAxisSize.min,
        children: <Widget>[
            const Icon(Icons.check),
            const SizedBox(width: 6),
            const Text('Save'),
        ],
    ),
)

If the direct child is an Icon, the button will be a square.

SleekButton(
    onTap: () {
        print('tapped!');
    },
    style: <style>
    child: const Icon(Icons.check),
)

Styles

Flat

SleekButtonStyle.flat(
    context: context,
)
SleekButtonStyle.flat(
    size: SleekButtonSize.small,
    context: context,
)
SleekButtonStyle.flat(
    inverted: true,
    context: context,
)
SleekButtonStyle.flat(
    rounded: true,
    context: context,
)
SleekButtonStyle.flat(
    size: SleekButtonSize.medium,
    rounded: true,
    context: context,
)

Outlined

SleekButtonStyle.outlined(
    context: context,
)
SleekButtonStyle.outlined(
    size: SleekButtonSize.small,
    context: context,
)
SleekButtonStyle.outlined(
    inverted: true,
    context: context,
)
SleekButtonStyle.outlined(
    rounded: true,
    context: context,
)
SleekButtonStyle.outlined(
    size: SleekButtonSize.medium,
    rounded: true,
    context: context,
)

Light

SleekButtonStyle.light(
    context: context,
)
SleekButtonStyle.light(
    size = SleekButtonSize.small,
    context: context,
)
SleekButtonStyle.light(
    rounded = true,
    context: context,
)
SleekButtonStyle.light(
    size: SleekButtonSize.medium,
    rounded = true,
    context: context,
)

Colors

If you give a color, all variants (dark, light, invert) will be calculated with the help of the derived_colors package.

SleekButtonStyle.flat(
    color: const Color(0xFF)
    context: context,
)
 SleekButtonStyle.light(
    color: const Color(0xFFFFC369),
    context: context,
)
SleekButtonStyle.outlined(
    color: const Color(0xFF323232),
    context: context,
)

Theme

You can customize the default appearance of the button by adding a SleekButtonTheme in the tree. If a Theme is in the tree, it will use it tu deduce a default theme.

SleekButtonTheme(
    data: const SleekButtonThemeData(
        padding: 24,
        textStyle: TextStyle(fontSize: 11),
        cornerRadius: 8.0,
        iconTheme: IconThemeData(size: 10),
        fill: Color(0xFFFF0000),
        borderWidth: 2,
    ),
    child: app,
)

Thanks

Thanks to the bulma framework team for the inspiration.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].