Coder Social home page Coder Social logo

icodelifee / fleasy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devj3ns/fleasy

0.0 1.0 0.0 261 KB

Useful and easy to use extensions, helper classes and widgets to create Flutter apps easier.

Home Page: https://pub.dev/packages/fleasy

License: BSD 3-Clause "New" or "Revised" License

Dart 100.00%

fleasy's Introduction

Fleasy Logo
pub.dev badge GitHub actions GitHub commit activity
Buy Me A Coffee

Fleasy helps create Flutter apps easier by providing useful and easy to use extensions, helper classes and widgets.

The goal is that by using this package you have to write less (repeating) and more clean and readable code.

Overview

Features

All features with links to their page in the documentation:

  • Extensions on String and String?:

    Note: All getters also do a null check if used on String?.

    • Whether the string contains characters except of whitespace characters.
    • Whether the string is either empty or solely made of whitespace characters.
    • Returns null if the string isBlank or it's text if it isNotBlank.
    • Whether the string is a valid email.
    • Whether the string is a valid url.
    • Whether the string is a valid easy password.
    • Whether the string is a valid medium password.
    • Whether the string is a valid strong password.
    • Adds https:// to the link if it does not contain https:// or http:// already. This is helpful to make a link openable when using the url_launcher package for example.
  • Extensions on BuildContext (Adaptive helpers):

  • Extensions on BuildContext (Theme helpers):

    • The data from the closest Theme instance that encloses the given context.
    • Whether the theme brightness is dark.
    • Whether the theme brightness is light.
  • Extensions on BuildContext (Navigation helpers):

  • Extensions on BuildContext (Flashbars):

    The extensions use the awesome flash package:

  • Extensions on List?:

    • Whether the list is not empty nor null.
    • Whether the list is empty or null.
  • Extensions on List:

    • Returns either the first element of the list which satisfies the provided test or null if there is none.
  • Extensions on DateTime:

    • Returns a copy with the overridden (given) attributes.
    • Returns a String which represents the date formatted by the given pattern.
    • Whether the date is today.
    • Whether the date is yesterday.
    • Whether the date is tomorrow.
    • Whether the date is a day in the future.
    • Whether the date is on the same day (regardless of the time) as the given date.
    • Whether the time of the date is zero/empty.
    • Returns a copy with time set to zero/empty.
  • Date helper class:

    • DateTime.now() without time (time set to zero).
    • The DateTime of tomorrow (without time (time set to zero)).
    • The DateTime of yesterday (without time (time set to zero)).
  • Insets helper class:

    A single source of truth for styling values like padding, spacing, corner shape, font sizes, and so on. These constants can then be used in place of hard-coded numeric values.

    • An extra extra small inset of 2.0.
    • An extra small inset of 4.0.
    • A small inset of 6.0.
    • A medium inset of 8.0.
    • A large inset of 10.0.
    • An extra large inset of 12.0.
    • An extra extra large inset of 16.0.
  • Flutter Widgets:

    • A wrapper around SizedBox for making consistent gaps. Example: Instead of SizedBox(width: 4.0) you can just write Gap.w4().
    • A wrapper around FutureBuilder which makes it easy to display the various states of fetching data from the given Future. See example.
    • A wrapper around StreamBuilder which makes it easy to display the various states of streaming data from the given Stream. See example.
  • Analysis options:

    You can use the same analysis options which this package uses by simply including them in your analysis_options.yaml file:

    include: package:fleasy/analysis_options.yaml

    They are based on:

    For more details, have a look at the analysis_options.yaml file here.

Note:

This package is still in early stages. If you notice any bugs not present in issues, please file a new issue. If you are willing to fix or enhance things yourself, you are very welcome to make a pull request.

Also: Feedback and suggestions are very welcome. Just open an issue or write an email to [email protected].

fleasy's People

Contributors

devj3ns avatar icodelifee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.