fancy_widgets 0.1.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 46

fancy_widgets #

A set of fancy widgets for Flutter.

Usage #

To use this plugin, add fancy_widgets as a dependency in your pubspec.yaml file.

Getting Started #

See the example directory for a complete sample app using Fancy Widgets.

[0.0.1] - 2019-01-21. #

initial release with 2 widgets RoundIconButton & RibbonBannerButton

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:fancy_widgets/fancy_widgets.dart';

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Fancy Widgets Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Fancy Widgets Demo'),
    );
  }
}

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: Center(
        child: Container(
          width: double.infinity,
          height: double.infinity,
          child: Column(
            mainAxisAlignment: MainAxisAlignment.spaceAround,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: <Widget>[
              Row(
                mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                children: <Widget>[
                  RoundIconButton(
                    color: Colors.white,
                    backgroundColor: Colors.red,
                    radius: 28.0,
                    elevation: 10.0,
                    icon: Icons.content_cut,
                    onPressed: () {
                      print('Pressed!!');
                    },
                  ),
                  RoundIconButton(
                    color: Colors.white,
                    backgroundColor: Colors.green,
                    radius: 28.0,
                    elevation: 10.0,
                    icon: Icons.content_copy,
                    onPressed: () {
                      print('Pressed!!');
                    },
                  ),
                  RoundIconButton(
                    color: Colors.white,
                    backgroundColor: Colors.blue,
                    radius: 28.0,
                    elevation: 10.0,
                    icon: Icons.content_paste,
                    onPressed: () {
                      print('Pressed!!');
                    },
                  ),
                ],
              ),
              RibbonBannerButton(
                text: Row(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: <Widget>[
                    Icon(
                      Icons.new_releases,
                      color: Colors.white,
                    ),
                    Padding(
                      padding: EdgeInsets.only(right: 10.0),
                    ),
                    Text('Button 1',
                        style: TextStyle(
                          color: Colors.white,
                        )),
                  ],
                ),
                width: 300,
                height: 60,
                color: Colors.red,
                elevation: 10.0,
                onPressed: () {
                  print('Pressed');
                },
              ),
              RibbonBannerButton(
                text: Text(
                  'Button 2',
                  style: TextStyle(
                    color: Colors.white,
                    fontSize: 22.0,
                  ),
                ),
                splashColor: Colors.purple.withOpacity(.3),
                width: 300,
                height: 60,
                color: Colors.green,
                elevation: 10.0,
                onPressed: () {
                  print('Pressed');
                },
              ),
              RibbonBannerButton(
                text: Text('Button 3'),
                width: 300,
                height: 60,
                color: Colors.blue,
                elevation: 10.0,
                onPressed: () {
                  print('Pressed');
                },
              ),
            ],
          ),
        ),
      ),
    );
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  fancy_widgets: ^0.1.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:fancy_widgets/fancy_widgets.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]
79
Overall:
Weighted score of the above. [more]
46
Learn more about scoring.

We analyzed this package on Apr 8, 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

Maintenance suggestions

Package is getting outdated. (-21.10 points)

The package was last published 63 weeks ago.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.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