Skip to content

Commit 12ad221

Browse files
committed
v0.6-beta.0 - framework version bump
1 parent aa6d67e commit 12ad221

18 files changed

+166
-132
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,4 @@ app.*.symbols
4040
app.*.map.json
4141

4242
# Exceptions to above rules.
43-
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
44-
45-
.env
43+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<a href="#"><img alt="GitHub stars" src="https://img.shields.io/github/stars/nylo-core/nylo?style=plastic"></a>
77
</p>
88

9-
## Nylo (Beta v0.5-beta.2)
9+
## Nylo (Beta v0.6-beta.0)
1010

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

@@ -38,7 +38,7 @@ git clone https://github.com/nylo-core/nylo.git
3838
View our [docs](https://nylo.dev/docs) and visit [nylo.dev](https://nylo.dev)
3939

4040
## Changelog
41-
Please see [CHANGELOG](https://woosignal.com) for more information what has changed recently.
41+
Please see [CHANGELOG](https://github.com/nylo-core/framework/blob/0.x/CHANGELOG.md) for more information what has changed recently.
4242

4343
## Social
4444
* [Twitter](https://twitter.com/nylo_dev)

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ android {
3939
defaultConfig {
4040
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4141
applicationId "com.nylo.dev"
42-
minSdkVersion 16
42+
minSdkVersion 18
4343
targetSdkVersion 28
4444
versionCode flutterVersionCode.toInteger()
4545
versionName flutterVersionName

ios/Runner.xcodeproj/project.pbxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@
374374
PRODUCT_NAME = "$(TARGET_NAME)";
375375
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
376376
SWIFT_VERSION = 5.0;
377+
TARGETED_DEVICE_FAMILY = 1;
377378
VERSIONING_SYSTEM = "apple-generic";
378379
};
379380
name = Profile;
@@ -512,6 +513,7 @@
512513
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
513514
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
514515
SWIFT_VERSION = 5.0;
516+
TARGETED_DEVICE_FAMILY = 1;
515517
VERSIONING_SYSTEM = "apple-generic";
516518
};
517519
name = Debug;
@@ -542,6 +544,7 @@
542544
PRODUCT_NAME = "$(TARGET_NAME)";
543545
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
544546
SWIFT_VERSION = 5.0;
547+
TARGETED_DEVICE_FAMILY = 1;
545548
VERSIONING_SYSTEM = "apple-generic";
546549
};
547550
name = Release;

ios/Runner/Info.plist

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
<key>UISupportedInterfaceOrientations</key>
3030
<array>
3131
<string>UIInterfaceOrientationPortrait</string>
32-
<string>UIInterfaceOrientationLandscapeLeft</string>
33-
<string>UIInterfaceOrientationLandscapeRight</string>
3432
</array>
3533
<key>UISupportedInterfaceOrientations~ipad</key>
3634
<array>
@@ -42,4 +40,4 @@
4240
<key>UIViewControllerBasedStatusBarAppearance</key>
4341
<false/>
4442
</dict>
45-
</plist>
43+
</plist>

lib/app/controllers/controller.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import 'package:nylo_framework/controllers/controller.dart';
22

3+
/// Base Controller for the Nylo
4+
/// See more on controllers here - https://nylo.dev/docs/1.x/controllers
35
class Controller extends BaseController {
46
Controller();
57
}
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
import 'package:flutter/widgets.dart';
12
import 'package:url_launcher/url_launcher.dart';
23
import 'controller.dart';
34

45
class HomeController extends Controller {
6+
7+
@override
8+
construct(BuildContext context) {
9+
10+
}
11+
512
onTapDocumentation() {
613
launch("https://nylo.dev/docs");
714
}
@@ -10,7 +17,7 @@ class HomeController extends Controller {
1017
launch("https://github.com/nylo-core/nylo");
1118
}
1219

13-
onTapChangeLog() async {
20+
onTapChangeLog() {
1421
launch("https://github.com/nylo-core/framework/blob/0.x/CHANGELOG.md");
1522
}
1623
}

lib/bootstrap/helpers.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
21
// Add your helper methods here

lib/config/app_theme.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:google_fonts/google_fonts.dart';
55
|--------------------------------------------------------------------------
66
| App Theme
77
|
8-
| Here you can change the font and colors for your themes.
8+
| Change the font and colors for your themes.
99
|--------------------------------------------------------------------------
1010
*/
1111

lib/main.dart

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,20 @@ import 'package:flutter_app/resources/themes/default_theme.dart';
55
import 'package:flutter_app/config/app_theme.dart';
66
import 'package:flutter_app/routes/router.dart';
77
import 'package:nylo_framework/localization/app_localization.dart';
8+
import 'package:nylo_framework/nylo.dart';
89
import 'package:nylo_framework/nylo_framework.dart';
9-
import 'package:nylo_framework/router/router.dart';
1010
import 'package:nylo_framework/theme/helper/theme_helper.dart';
1111

1212
void main() async {
1313
WidgetsFlutterBinding.ensureInitialized();
1414
AppTheme appTheme = AppTheme();
1515

16-
await initNylo(theme: defaultTheme(appTheme));
17-
18-
NyRouter router = buildRouter();
16+
Nylo nylo = await initNylo(theme: defaultTheme(appTheme), router: buildRouter());
1917

2018
runApp(
2119
AppBuild(
22-
navigatorKey: router.navigatorKey,
23-
onGenerateRoute: router.generator(),
20+
navigatorKey: nylo.router.navigatorKey,
21+
onGenerateRoute: nylo.router.generator(),
2422
themeData: CurrentTheme.instance.theme,
2523
darkTheme: darkTheme(appTheme),
2624
locale: AppLocale.instance.locale,

lib/resources/pages/home_page.dart

Lines changed: 90 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'package:flutter/material.dart';
22
import 'package:flutter_app/app/controllers/home_controller.dart';
3-
import 'package:flutter_app/resources/widgets/safearea_container_widget.dart';
3+
import 'package:flutter_app/resources/widgets/safearea_widget.dart';
44
import 'package:nylo_framework/helpers/helper.dart';
55
import 'package:nylo_framework/widgets/ny_state.dart';
66
import 'package:nylo_framework/widgets/stateful_page_widget.dart';
@@ -22,102 +22,100 @@ class _MyHomePageState extends NyState<MyHomePage> {
2222
@override
2323
Widget build(BuildContext context) {
2424
return Scaffold(
25-
appBar: AppBar(
26-
title: Text(widget.title),
27-
),
28-
body: SafeAreaContainerWidget(
29-
child: Center(
30-
child: Column(
31-
crossAxisAlignment: CrossAxisAlignment.center,
32-
mainAxisAlignment: MainAxisAlignment.center,
33-
children: <Widget>[
34-
Image.asset(
35-
getImageAsset("nylo_logo.png"),
36-
height: 100,
37-
width: 100,
38-
),
39-
Text(
40-
getEnv("APP_NAME"),
41-
style: Theme.of(context).textTheme.headline2,
42-
),
43-
Text(
44-
"Micro-framework for Flutter",
45-
style: Theme.of(context).accentTextTheme.subtitle1,
46-
textAlign: TextAlign.center,
47-
),
48-
Text(
49-
"Build something amazing 💡️",
50-
style: Theme.of(context).textTheme.bodyText2,
51-
textAlign: TextAlign.center,
52-
),
53-
Column(
54-
crossAxisAlignment: CrossAxisAlignment.center,
55-
mainAxisAlignment: MainAxisAlignment.start,
56-
children: <Widget>[
57-
Divider(),
58-
Container(
59-
width: double.infinity,
60-
margin:
61-
EdgeInsets.symmetric(horizontal: 16, vertical: 16),
62-
padding:
63-
EdgeInsets.symmetric(horizontal: 16, vertical: 16),
64-
decoration: BoxDecoration(
65-
color: Colors.white70,
66-
borderRadius: BorderRadius.circular(8),
67-
boxShadow: [
68-
BoxShadow(
69-
color: Colors.grey.withOpacity(0.1),
70-
spreadRadius: 1,
71-
blurRadius: 9,
72-
offset:
73-
Offset(0, 3), // changes position of shadow
74-
),
75-
]),
76-
child: ListView(
77-
shrinkWrap: true,
78-
children: [
79-
MaterialButton(
80-
child: Text(
81-
trans(context, "documentation").capitalize(),
82-
style: Theme.of(context).textTheme.bodyText1,
83-
),
84-
onPressed: widget.controller.onTapDocumentation,
85-
),
86-
Divider(
87-
height: 0,
25+
appBar: AppBar(
26+
title: Text(widget.title),
27+
),
28+
body: SafeAreaWidget(
29+
child: Center(
30+
child: Column(
31+
crossAxisAlignment: CrossAxisAlignment.center,
32+
mainAxisAlignment: MainAxisAlignment.center,
33+
children: <Widget>[
34+
Image.asset(
35+
getImageAsset("nylo_logo.png"),
36+
height: 100,
37+
width: 100,
38+
),
39+
Text(
40+
getEnv("APP_NAME"),
41+
style: Theme.of(context).textTheme.headline2,
42+
),
43+
Text(
44+
"Micro-framework for Flutter",
45+
style: Theme.of(context).accentTextTheme.subtitle1,
46+
textAlign: TextAlign.center,
47+
),
48+
Text(
49+
"Build something amazing 💡️",
50+
style: Theme.of(context).textTheme.bodyText2,
51+
textAlign: TextAlign.center,
52+
),
53+
Column(
54+
crossAxisAlignment: CrossAxisAlignment.center,
55+
mainAxisAlignment: MainAxisAlignment.start,
56+
children: <Widget>[
57+
Divider(),
58+
Container(
59+
width: double.infinity,
60+
margin: EdgeInsets.symmetric(horizontal: 16, vertical: 16),
61+
padding: EdgeInsets.symmetric(horizontal: 16, vertical: 16),
62+
decoration: BoxDecoration(
63+
color: Colors.white70,
64+
borderRadius: BorderRadius.circular(8),
65+
boxShadow: [
66+
BoxShadow(
67+
color: Colors.grey.withOpacity(0.1),
68+
spreadRadius: 1,
69+
blurRadius: 9,
70+
offset: Offset(0, 3), // changes position of shadow
8871
),
89-
MaterialButton(
90-
child: Text(
91-
"GitHub",
92-
style: Theme.of(context).textTheme.bodyText1,
93-
),
94-
onPressed: widget.controller.onTapGithub,
72+
]),
73+
child: ListView(
74+
shrinkWrap: true,
75+
children: [
76+
MaterialButton(
77+
child: Text(
78+
trans(context, "documentation").capitalize(),
79+
style: Theme.of(context).textTheme.bodyText1,
9580
),
96-
Divider(
97-
height: 0,
81+
onPressed: widget.controller.onTapDocumentation,
82+
),
83+
Divider(
84+
height: 0,
85+
),
86+
MaterialButton(
87+
child: Text(
88+
"GitHub",
89+
style: Theme.of(context).textTheme.bodyText1,
9890
),
99-
MaterialButton(
100-
child: Text(
101-
trans(context, "changelog").capitalize(),
102-
style: Theme.of(context).textTheme.bodyText1,
103-
),
104-
onPressed: widget.controller.onTapChangeLog,
91+
onPressed: widget.controller.onTapGithub,
92+
),
93+
Divider(
94+
height: 0,
95+
),
96+
MaterialButton(
97+
child: Text(
98+
trans(context, "changelog").capitalize(),
99+
style: Theme.of(context).textTheme.bodyText1,
105100
),
106-
],
107-
),
101+
onPressed: widget.controller.onTapChangeLog,
102+
),
103+
],
108104
),
109-
Text(
110-
nyloVersion,
111-
style: Theme.of(context)
112-
.textTheme
113-
.bodyText2
114-
.copyWith(color: Colors.grey),
115-
),
116-
],
117-
),
118-
],
119-
),
105+
),
106+
Text(
107+
nyloVersion,
108+
style: Theme.of(context)
109+
.textTheme
110+
.bodyText2
111+
.copyWith(color: Colors.grey),
112+
),
113+
],
114+
),
115+
],
120116
),
121-
),);
117+
),
118+
),
119+
);
122120
}
123121
}

lib/resources/themes/dark_theme.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ import 'package:flutter/material.dart';
22
import 'package:flutter_app/config/app_theme.dart';
33
import 'package:nylo_framework/helpers/helper.dart';
44

5+
/*
6+
|--------------------------------------------------------------------------
7+
| Dark Theme
8+
|
9+
| Theme Config - config/app_theme.dart
10+
|--------------------------------------------------------------------------
11+
*/
12+
513
TextTheme _defaultTextTheme(AppTheme appTheme) {
614
return TextTheme(
715
headline5: TextStyle(

lib/resources/themes/default_theme.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ import 'package:flutter/material.dart';
22
import 'package:flutter_app/config/app_theme.dart';
33
import 'package:nylo_framework/helpers/helper.dart';
44

5+
/*
6+
|--------------------------------------------------------------------------
7+
| Default Theme
8+
|
9+
| Theme Config - config/app_theme.dart
10+
|--------------------------------------------------------------------------
11+
*/
12+
513
TextTheme _defaultTextTheme(AppTheme appTheme) {
614
return TextTheme(
715
headline5: TextStyle(

lib/resources/widgets/safearea_container_widget.dart

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)