Giter VIP home page Giter VIP logo

super_extensions's Introduction

Super Extensions codecov

GitHub contributors GitHub stars

Introduction

We all love shortcode that does the work. So dart has provided a great feature called Extension Methods which you can use on different data types! What are Extension Methods exactly? Extension methods add functionality to existing libraries. You might use extension methods without even knowing it. For example, when you use code completion in an IDE, it suggests extension methods alongside regular methods. (Reference)

What is this package about?

We probably use lots of extension methods in our project. So, this package combines all the extension methods that are used on daily basis and make them available to you under a single package so that you can reuse them in multiple packages.

Getting started

To learn more about Extension Methods, feel free to check this article.

List of Extensions

In this package, right now we have the following extension methods:

  • Extensions on BuildContext:
    • void showSnackBar(SnackBar snackBar)
    • void showNewDialog(Widget child)
    • double get screenHeight
    • double get screenWidth
    • bool get isMobile
    • bool get isTablet
    • bool get isDesktop
    • void push(Widget className)
    • void pushReplacement(Widget className)
    • void pushNamed(String path)
    • void pushReplacementNamed(String path)
    • void pushAndRemoveUntil(Widget className)
    • void pushNamedAndRemoveUntil(String path)
    • Future maybePop()
    • void pop()
    • void popAndPushNamed(String path)
    • EdgeInsets padding
    • EdgeInsets viewPadding
    • EdgeInsets viewInsets
  • Extensions on String:
    • String capitaliseFirstChar()
    • String capitaliseEachWordFirstChar()
    • Future copyToClipboard()
    • bool isPalindrom
  • Extensions on num:
    • SizedBox hSizedBox
    • SizedBox wSizedBox

Contribution Information

If you feel that there can be any other extension methods, feel free to create a PR for the same and I would love to add it to the package ๐Ÿ’™

super_extensions's People

Contributors

abhishekdoshi26 avatar codernamedhendrick avatar jasimameen avatar bhoomit74 avatar ahmeddhus avatar coder-aayush avatar baimamboukar 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.