Skip to content

Commit

Permalink
Added utils folder to export all utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Atharva Patwardhan committed Dec 13, 2023
1 parent 6e76012 commit 2341f3d
Show file tree
Hide file tree
Showing 5 changed files with 5,881 additions and 9 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
- [Startify - Your Swiss Army Knife for Flutter Projects](#startify---your-swiss-army-knife-for-flutter-projects)
- [Table of Contents](#table-of-contents)
- [Introduction](#introduction)
- [But Wait, There's More!](#but-wait-theres-more)
- [Features](#features)
- [Generated folder structure:](#generated-folder-structure)
- [Getting Started](#getting-started)
- [Contributing](#contributing)
- [License](#license)
Expand All @@ -19,11 +18,13 @@

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.

### But Wait, There's More!

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.

## Features
## Generated folder structure:

<p align="center">
<img src="assets/snap.png" alt="Folder Structure Illustration">
</p>

- **Shared Preferences Helper:**
- *File:* `lib/utils/services/shared_preferences_helper.dart`
Expand Down
Binary file added assets/snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,13 +545,21 @@ function generateFiles() {
" }" +
"}";

const utilsContent =
"export 'assets.dart';\n" +
"export 'colors.dart';\n" +
"export 'constants.dart';\n" +
"export 'responsive.dart';\n" +
"export 'styles.dart';\n";


// Write content to files
fs.writeFileSync(path.join(utilsFolder, 'assets.dart'), assetsContent);
fs.writeFileSync(path.join(utilsFolder, 'colors.dart'), colorsContent);
fs.writeFileSync(path.join(utilsFolder, 'constants.dart'), constantsContent);
fs.writeFileSync(path.join(utilsFolder, 'responsive.dart'), responsiveContent);
fs.writeFileSync(path.join(utilsFolder, 'styles.dart'), stylesContent);
fs.writeFileSync(path.join(utilsFolder, 'utils.dart'), utilsContent);
fs.writeFileSync(path.join(servicesFolder, 'shared_preferences_helper.dart'), sharedPrefsContent);

vscode.window.showInformationMessage('Flutter boilerplate files generated successfully!');
Expand Down
Loading

0 comments on commit 2341f3d

Please sign in to comment.