Skip to content

Commit

Permalink
Merge pull request #18 from nylo-core/master
Browse files Browse the repository at this point in the history
v0.8.5 - updates
  • Loading branch information
agordn52 authored Apr 30, 2021
2 parents 30cc704 + 64c190e commit fc080b5
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## [0.8.5] - 2021-04-30

* Use pascal format for metro cli
* Fix metro make:page command

## [0.8.4] - 2021-04-29

* Fix stub using NyStatefulWidget

## [0.8.3] - 2021-04-28

* Fix stub using NyStatefulWidget
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<a href="https://github.com/nylo-core/framework"><img alt="GitHub stars" src="https://img.shields.io/github/stars/nylo-core/framework?style=plastic"></a>
</p>

## Nylo Framework (Beta v0.8.3)
## Nylo Framework (Beta v0.8.5)

Nylo is a micro-framework for Flutter which is designed to help simplify app development. Every project provides a simple boilerplate and MVC pattern to help you build apps easier.

Expand Down
8 changes: 5 additions & 3 deletions lib/metro/metro.dart
Original file line number Diff line number Diff line change
Expand Up @@ -370,13 +370,15 @@ _makePage(List<String> arguments) async {
parser.addFlag(helpFlag,
abbr: 'h',
help: 'Creates a new page widget for your project.',
negatable: false);
negatable: false,
);

bool shouldCreateController = false;
parser.addFlag(controllerFlag,
abbr: 'c',
help: 'Creates a new page with a controller',
negatable: false);
negatable: false,
);

final ArgResults argResults = parser.parse(arguments);

Expand Down Expand Up @@ -439,7 +441,7 @@ _makePage(List<String> arguments) async {

await _makeDirectory(pageFolder);

await file.writeAsString(pageStub(pageName: className));
await file.writeAsString(pageStub(pageName: _parseToPascal(className)));

_writeInGreen('${className}_page created 🎉');

Expand Down
3 changes: 1 addition & 2 deletions lib/metro/stubs/page_stub.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
String pageStub({String? pageName}) => '''
import 'package:flutter/material.dart';
import 'package:nylo_framework/widgets/ny_state.dart';
import 'package:nylo_framework/widgets/ny_stateful_widget.dart';
class ${pageName}Page extends StatefulPageWidget {
class ${pageName}Page extends StatefulWidget {
${pageName}Page({Key key}) : super(key: key);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: nylo_framework
description: Micro-framework for Flutter that's built to simplify app development for Flutter projects.
version: 0.8.3
version: 0.8.5
homepage: https://nylo.dev
repository: https://github.com/nylo-core/framework
issue_tracker: https://github.com/nylo-core/framework/issues
Expand Down

0 comments on commit fc080b5

Please sign in to comment.