awesome_ui_button 1.0.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 50

awesome_ui_button #

License: MIT

This package allows you to add a good looking button to your application easily and without having to write a lot of code yourself, simply import and start using.

Add the dependency #

Add this to your pubspec.yaml

dependencies:
  awesome_ui_button: ^0.0.1

Installing #

Run the following command

flutter pub get

Import the package #

import 'package:awesome_ui_button/awesome_ui_button.dart';

Add the button to your application #

AwesomeButton(
  text: "Default",
),

OR

AwesomeButton.outline(
  text: "Outline",
),


OR

AwesomeButton.destructive(
  text: "Destructive",
),

For full documentation visit flutterawesome.dev

[1.0.0] - Jan 2020. #

  • Release of 1.0.0

[0.0.1] - Jan 2020 #

  • Internal release(do not use in production)

example/lib/main.dart

import 'package:flutter/material.dart';
import 'default_sized_buttons.dart';
import 'sized_buttons.dart';
import 'interactions.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      onGenerateRoute: (settings){
        switch(settings.name) {
          case "/":
            return DefaultSized.route();
          case "/sized":
            return Sized.route();
          case "/interact":
            return Interaction.route();
          default:
            return DefaultSized.route();
            break;
        }
      },
      initialRoute: "/",
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Column(
        mainAxisSize: MainAxisSize.min,
        children: <Widget>[

        ],
      )
    );
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  awesome_ui_button: ^1.0.0

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:awesome_ui_button/awesome_ui_button.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
50
Learn more about scoring.

We analyzed this package on Apr 6, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6
  • Flutter: 1.12.13+hotfix.8

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test