Acronym - A simple, lightweight and easy to use package to generate acronyms

Related tags

Templates acronym
Overview

A simple, lightweight and easy to use package to generate acronyms.

Usage

You can use it with the standard arguments to generate your acronym:

import 'package:acronym/acronym.dart';

const String input = "The United States of America";
final String output = generateAcronym(input);
print(output); // "USA"

Sample usage with the extension:

import 'package:acronym/acronym.dart';

const String input = "The United States of America";
final String output = input.toAcronym();
print(output); // "USA"

You can use it with stop words like this:

import 'package:acronym/acronym.dart';

const String input = "The United States of America";
final String output1 = input.toAcronym(stopWords: stopWords);

final String output1 = generateAcronym(input, stopWords: stopWords);
print(output); // "USA"

Add your own stop words:

import 'package:acronym/acronym.dart';

const String input = "The United States of America";
final List<String> stopWords = [...stopWords, "states"];
final String output = input.toAcronym(stopWords: stopWords);
print(output); //UA

If you want to generate the Acronym without any words you can do it like this

import 'package:acronym/acronym.dart';

const String input = "The United States of America";
final String output = input.toAcronym(stopWords: []);
print(output); //TUSOA
You might also like...

This is a mason brick you can use to generate code that get's you started right up with a flutter project

flutter_brick This is a mason brick you can use to generate code that gets you started right up with a flutter project A flutter brick created with th

Sep 16, 2022

A lightweight flutter package to linkify texts containing urls, emails and hashtags

A lightweight flutter package to linkify texts containing urls, emails and hashtags

linkfy_text A lightweight flutter package to linkify texts containing urls, emails and hashtags. Usage To use this package, add linkfy_text as a depen

Nov 23, 2022

Animated shimmer - A simple & lightweight widget to display an animated shimmer effect

Animated shimmer - A simple & lightweight widget to display an animated shimmer effect

Animated Shimmer Supports Null Safety A simple & lightweight widget to display a

Apr 27, 2022

A package that gives us a modern way to show animated border as a placeholder while loading our widget with easy customization and ready to use.

A package that gives us a modern way to show animated border as a placeholder while loading our widget with easy customization and ready to use.

A package that gives us a modern way to show animated border as a placeholder while loading our widget with easy customization and ready to use.

Oct 3, 2022

FFloat, although simple and easy to use, can satisfy all your imagination of the floating layer.

FFloat, although simple and easy to use, can satisfy all your imagination of the floating layer.

ffloat FFloat, although simple and easy to use, can satisfy all your imagination of the floating layer. Born and elegant, supporting precise position

Oct 25, 2022

Expense tracking app flutter - Simple and easy to use Expense Tracking App

Flutter Expense Tracking App πŸš€ Simple and easy to use Expense Tracking App. Fea

Feb 7, 2022

A Flutter example about simple authentication with Auth0 and generate random QR code.

A Flutter example about simple authentication with Auth0 and generate random QR code.

ryougoku This is Flutter example about simple authentication with Auth0 and generate random QR code. Environment setup Use need to create a .env.devel

Sep 24, 2022

This is an easy to use Flutter Package for adding Fancy Foldable Sidebar to your Flutter Applications.

This is an easy to use Flutter Package for adding Fancy Foldable Sidebar to your Flutter Applications.

Foldable Sidebar An easy to implement Foldable Sidebar Navigation Drawer for Flutter Applications. Current Features Initial Release for Foldable Navig

Nov 26, 2022

πŸ™ŒπŸΎ This package makes it easy to use the Mono connect widget in a flutter project

πŸ™ŒπŸΎ This package makes it easy to use the Mono connect widget in a flutter project

Flutter Mono ** This is an unofficial SDK for flutter This package makes it easy to use the Mono connect widget in a flutter project. πŸ“Έ Screen Shots

Dec 20, 2022
Owner
jxstxn__
Flutter and NodeJS Dev Started with Java in 2017
jxstxn__
Easy to use, reliable and lightweight gesture detector for Flutter apps, exposing simple API for basic gestures

Simple Gesture Detector Easy to use, reliable and lightweight gesture detector for Flutter apps. Exposes simple API to react to basic gestures. Featur

Aleksander WoΕΊniak 26 Nov 4, 2022
Given a JSON string, this library will generate all the necessary Dart classes to parse and generate JSON.

JSON to Dart Given a JSON string, this library will generate all the necessary Dart classes to parse and generate JSON. This library is designed to ge

Javier Lecuona 1.2k Dec 25, 2022
A Flutter package for simple and easy to use actions like buttons, checkboxes and switches.

Easy Actions Overview A Flutter package for simple and easy to use actions like buttons, checkboxes and switches. Features Elevated Button Outlined Bu

Ashish Bhakhand 3 Jun 25, 2022
Flutter simple image crop - A simple and easy to use flutter plugin to crop image on iOS and Android

Image Zoom and Cropping plugin for Flutter A simple and easy used flutter plugin to crop image on iOS and Android. Installation Add simple_image_crop

null 97 Dec 14, 2021
ThemeX is an easy theme manipulation. Only inform primary color and the ThemeX generate all color combination palette for you

ThemeX is an easy theme manipulation basied on Material Design. Only inform primary color and the ThemeX generate all color combination palette for yo

Michael S. Lopes 2 Jan 31, 2022
A flutter widget to indicate loading progress. Easy to use, easy to extend

?? ?? ?? A flutter widget to indicate loading progress. Easy to use, easy to extend

Manuel Duarte 2 May 30, 2022
WIP: generate easy localization key code

Generates translation key code for the easy localization package. Support for json and yaml formats.You can see examples in the assets/ folder. Gettin

null 3 Oct 24, 2022
A TabBarController that is easy to use for flutter developers. πŸ₯° It supports various styles of page navigation, and you can also use it to customize your favorite styles. 🍻🍻

easy_tab_controller A user-friendly TabBarController widget for flutter developer. Getting Started This project is a starting point for a Flutter plug

εœ†ε·ζœ¬ζ˜Š 3 May 26, 2022
A simple web API to generate images from a url, made using shelf package.

Webshot API Yet another simple webshot API but written in dart and built using Shelf library to generate images from url. This is really useful for li

wrench 15 Oct 19, 2022