Giter Site home page Giter Site logo

codesadhu / startify Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.47 MB

Startify - a Visual Studio Code Extension for creating awesome Flutter projects with ease!

Home Page: https://marketplace.visualstudio.com/items?itemName=CodeSadhu.startify

License: MIT License

JavaScript 100.00%
dart dart-extension dartlang flutter flutter-vscode-extension vscode-extension

startify's Introduction

Startify Logo

Startify - Your Swiss Army Knife for Flutter Projects

Table of Contents

Introduction

Welcome to Startify, your all-in-one companion for creating awesome Flutter projects with ease! Whether you're starting a new project or need to jump-start development on your next brilliant idea, Startify has got your back. Say goodbye to tedious repetitive setup tasks and hello to a smooth, delightful development experience.

Startify isn't just another mundane extension. It's a Swiss Army Knife for Flutter projects! We've assembled a collection of useful tools and utilities inside the utils and services folder, so you can focus on building incredible apps rather than wasting time on boilerplate code.

Generated folder structure:

Folder Structure Illustration

  • Shared Preferences Helper:

    • File: lib/utils/services/shared_preferences_helper.dart
    • Description: Utility class for handling shared preferences with most commonly used shared preferences methods.
  • Assets Utility:

    • File: lib/utils/assets.dart
    • Description: Utility class for defining asset paths like images, svgs, gifs, etc.
  • Colors Utility:

    • File: lib/utils/colors.dart
    • Description: Utility class for defining colors to be used throughout the app.
  • Constants Utility:

    • File: lib/utils/constants.dart
    • Description: Utility class with constantly used variables/extensions/utility methods (includes some prethrown good stuff ๐Ÿ˜‰).
  • Responsive Widget:

    • File: lib/utils/responsive.dart
    • Description: A responsive widget for handling different screen sizes.
  • Styles Utility:

    • File: lib/utils/styles.dart
    • Description: Utility class for defining text styles and input decorations.

Getting Started

Startify is easy to install and use. Here's how you can get started:

  1. Install the Extension:

    • Open Visual Studio Code.
    • Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X on Mac).
    • Search for "Startify" and click "Install."
  2. Run the Command:

    • Open your Flutter project in Visual Studio Code.
    • Make sure that the lib folder has been generated (crucial step)
    • Press F1 (or Ctrl+Shift+P / Cmd+Shift+P on Mac) to open the Command Palette.
    • Type "Startify: Generate Startify" and select the command when it appears in the list.

That's it! The extension will work its magic, generating the necessary files and folders inside the lib folder of your Flutter project with the corresponding boilerplate code.

Contributing

We welcome all contributions to make Startify even more fantastic! If you have an idea for a new feature or find a bug, head over to our GitHub repository and let us know. We encourage you to be creative, innovative, and humorous in your contributions (just like this README!).

License

Startify is released under the MIT License, which means you can use it freely in your projects without any worries.


We hope you find Startify as delightful to use as we found it delightful to build! Happy coding, and remember, "Boilerplates don't have to be boring!" ๐Ÿ˜„๐Ÿš€

startify's People

Contributors

codesadhu avatar

Stargazers

 avatar

Watchers

 avatar

startify's Issues

Need to run some checks before generating boilerplate files

Startify needs to first check whether the files and/or folders that it is about to generate already exist. If not, proceed with generation. If yes, pass these scenarios:

  1. If folder exists (eg. utils), the files that are normally generated under the utils folder should be generated in the one that already exists
  2. If the file exists (eg. utils/colors.dart), skip the creation of the file and display a message stating the skipped file name.

Improve code readability and sort resultant code

Currently the extension generates dart files and fills in the boilerplate code via the variables found in the extension.js file. I believe a better approach will be to segregate/sort these boilerplate codes into separate files within the source code folder and then reference somehow during runtime.
I tried taking this approach but it seems it doesn't work well after bundling the extension into a .vsix.

Perhaps, Github variables can come to the rescue and help a bit here.

Please note that this is only the approach I think is optimal. Better approaches/suggestions are always appreciated.

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.