Skip to content

Commit b38daa2

Browse files
Merge pull request #355 from StacDev/dv/stac-refactor
chore: Release Stac 1.0.0-dev.7
2 parents bfe87e7 + 4a0df1b commit b38daa2

File tree

19 files changed

+129
-1261
lines changed

19 files changed

+129
-1261
lines changed

examples/counter_example/pubspec.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -726,21 +726,21 @@ packages:
726726
path: "../../packages/stac"
727727
relative: true
728728
source: path
729-
version: "1.0.0-dev.6"
729+
version: "1.0.0-dev.7"
730730
stac_core:
731731
dependency: "direct overridden"
732732
description:
733733
path: "../../packages/stac_core"
734734
relative: true
735735
source: path
736-
version: "0.1.0"
736+
version: "0.2.0"
737737
stac_framework:
738738
dependency: "direct overridden"
739739
description:
740740
path: "../../packages/stac_framework"
741741
relative: true
742742
source: path
743-
version: "0.3.0"
743+
version: "0.4.0"
744744
stac_logger:
745745
dependency: "direct overridden"
746746
description:

examples/movie_app/pubspec.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,21 +446,21 @@ packages:
446446
path: "../../packages/stac"
447447
relative: true
448448
source: path
449-
version: "1.0.0-dev.6"
449+
version: "1.0.0-dev.7"
450450
stac_core:
451451
dependency: "direct main"
452452
description:
453453
path: "../../packages/stac_core"
454454
relative: true
455455
source: path
456-
version: "0.1.0"
456+
version: "0.2.0"
457457
stac_framework:
458458
dependency: "direct overridden"
459459
description:
460460
path: "../../packages/stac_framework"
461461
relative: true
462462
source: path
463-
version: "0.3.0"
463+
version: "0.4.0"
464464
stac_logger:
465465
dependency: "direct overridden"
466466
description:

examples/stac_gallery/pubspec.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -726,21 +726,21 @@ packages:
726726
path: "../../packages/stac"
727727
relative: true
728728
source: path
729-
version: "1.0.0-dev.6"
729+
version: "1.0.0-dev.7"
730730
stac_core:
731731
dependency: "direct main"
732732
description:
733733
path: "../../packages/stac_core"
734734
relative: true
735735
source: path
736-
version: "0.1.0"
736+
version: "0.2.0"
737737
stac_framework:
738738
dependency: "direct overridden"
739739
description:
740740
path: "../../packages/stac_framework"
741741
relative: true
742742
source: path
743-
version: "0.3.0"
743+
version: "0.4.0"
744744
stac_logger:
745745
dependency: "direct overridden"
746746
description:

packages/stac/CHANGELOG.md

Lines changed: 110 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -1,129 +1,136 @@
1+
## 1.0.0-dev.7
2+
3+
- feat: Added support for Dart-to-Json conversion via Stac DSL
4+
- breaking: TextSpan now takes `text` as a pram instead of `data`
5+
- feat: Improved Stac border and styles
6+
- Minor bug fixes and improvements
7+
18
## 1.0.0-dev.6
29

3-
* BREAKING: Minimum Flutter SDK is now 3.35.0+
4-
* BREAKING: Switch — rename `activeColor``activeThumbColor` (align with Flutter API). Update your JSON accordingly
5-
* BREAKING: `ThemeData.bottomAppBarTheme` now expects `BottomAppBarThemeData` (aligned with Flutter 3.35). No JSON change for `StacBottomAppBarTheme`
6-
* docs: Updated Switch and Radio docs; added guidance for RadioGroup usage
7-
* chore: Static analysis cleanups for latest Flutter
10+
- BREAKING: Minimum Flutter SDK is now 3.35.0+
11+
- BREAKING: Switch — rename `activeColor``activeThumbColor` (align with Flutter API). Update your JSON accordingly
12+
- BREAKING: `ThemeData.bottomAppBarTheme` now expects `BottomAppBarThemeData` (aligned with Flutter 3.35). No JSON change for `StacBottomAppBarTheme`
13+
- docs: Updated Switch and Radio docs; added guidance for RadioGroup usage
14+
- chore: Static analysis cleanups for latest Flutter
815

916
## 1.0.0-dev.5
1017

11-
* feat: WASM compatibility for Web/WASM platform support
12-
* feat: Implemented conditional widget with expression evaluation for dynamic UI logic
13-
* feat: Added SVG file rendering capability to StacImage by @Potatomonsta
14-
* feat: Added TextStyle.copyWith() functionality via copyWithStyle property by @Abdalqader27
15-
* feat: Implemented border side customization in BoxDecoration by @MohamedAbd0
16-
* feat: Added multi_action_parser support for advanced interaction handling by @antonioacademy10
17-
* feat: Integrated SnackBarThemeData for consistent styling by @Potatomonsta
18-
* feat: Implemented BackdropFilter widget by @manav-m
19-
* feat: Introduced color transparency using @ notation (e.g. "primary@50")
20-
* feat: Added support for Visibility widget by @Abdalqader27
18+
- feat: WASM compatibility for Web/WASM platform support
19+
- feat: Implemented conditional widget with expression evaluation for dynamic UI logic
20+
- feat: Added SVG file rendering capability to StacImage by @Potatomonsta
21+
- feat: Added TextStyle.copyWith() functionality via copyWithStyle property by @Abdalqader27
22+
- feat: Implemented border side customization in BoxDecoration by @MohamedAbd0
23+
- feat: Added multi_action_parser support for advanced interaction handling by @antonioacademy10
24+
- feat: Integrated SnackBarThemeData for consistent styling by @Potatomonsta
25+
- feat: Implemented BackdropFilter widget by @manav-m
26+
- feat: Introduced color transparency using @ notation (e.g. "primary@50")
27+
- feat: Added support for Visibility widget by @Abdalqader27
2128

2229
## 1.0.0-dev.4
2330

24-
* chore: update pub dependencies
31+
- chore: update pub dependencies
2532

2633
## 1.0.0-dev.3
2734

28-
* feat: Replace networkImage with CachedNetwork Image
29-
* feat: add ClipRRect widget support
30-
* fix: rename ItemTemplate → itemTemplate for consistency by @ayatsuno
31-
* feat: Add GestureDetector widget support with tap, drag and press handlers
32-
* feat: Add Material 3 fixed color and new surface variants to color scheme
33-
* feat: add ClipOval widget support by @vijaykarthiktk
34-
* feat: add support for inkwell widget by @AbhijithKonnayil
35-
* feat: add variable support with setValue widget and action
36-
* feat: add support to StacDouble class by @AbhijithKonnayil
35+
- feat: Replace networkImage with CachedNetwork Image
36+
- feat: add ClipRRect widget support
37+
- fix: rename ItemTemplate → itemTemplate for consistency by @ayatsuno
38+
- feat: Add GestureDetector widget support with tap, drag and press handlers
39+
- feat: Add Material 3 fixed color and new surface variants to color scheme
40+
- feat: add ClipOval widget support by @vijaykarthiktk
41+
- feat: add support for inkwell widget by @AbhijithKonnayil
42+
- feat: add variable support with setValue widget and action
43+
- feat: add support to StacDouble class by @AbhijithKonnayil
3744

3845
## 1.0.0-dev.2
3946

40-
* feat: update stac theme with new ThemeData classes
41-
* fix: Make background & onBackground as nullable in ColorScheme by @oyewalekehinde
42-
* feat: Add support for the DropdownMenu widget by @Odinachi
47+
- feat: update stac theme with new ThemeData classes
48+
- fix: Make background & onBackground as nullable in ColorScheme by @oyewalekehinde
49+
- feat: Add support for the DropdownMenu widget by @Odinachi
4350

4451
## 1.0.0-dev.1
4552

46-
* feat: Add SliverAppBar & CustomScrollView parser by @nikb7
47-
* chore: update pub dependencies
48-
* feat: Add StacDynamicView parser for fetching and rendering API data
53+
- feat: Add SliverAppBar & CustomScrollView parser by @nikb7
54+
- chore: update pub dependencies
55+
- feat: Add StacDynamicView parser for fetching and rendering API data
4956

5057
## 0.10.0
5158

52-
* Migrate to Flutter 3.29
53-
* feat: Remove IconAlignment from button widgets by @divyanshub024
59+
- Migrate to Flutter 3.29
60+
- feat: Remove IconAlignment from button widgets by @divyanshub024
5461

5562
## 0.9.3
5663

57-
* Add pub.dev topics
64+
- Add pub.dev topics
5865

5966
## 0.9.2
6067

61-
* chore: update readme
68+
- chore: update readme
6269

6370
## 0.9.0
6471

65-
* feat: Add Stac parser for hero widget by @Yash-Khattar
66-
* feat: Added support for radio widget by @ishanvaghani
67-
* feat: Added support for slider widget by @ishanvaghani
68-
* feat: Add support for Opacity widget by @vinothvino42
69-
* feat: Add material as default icon type and update icon example by @vinothvino42
70-
* fix: filledButton onPressed and onLongPress Functionality by @ShalmonAnandas
71-
* feat: Added support for snackbar by @ishanvaghani
72-
* feat: Adding Support Placeholder by @MohamedAbd0
73-
* feat : Adding AspectRatio, FittedBox, LimitedBox Widgets by @MohamedAbd0
74-
* feat: Update Stac webview @divyanshub024
75-
* fix: Simplify table border configuration by @divyanshub024
76-
* feat: Added support for name colors by @ishanvaghani
77-
* feat: standardize parameters in buttons by @ishanvaghani
78-
* feat: Update Chip widget params by @divyanshub024
79-
* fix: change all icon button widget property from child to icon by @vinothvino42
72+
- feat: Add Stac parser for hero widget by @Yash-Khattar
73+
- feat: Added support for radio widget by @ishanvaghani
74+
- feat: Added support for slider widget by @ishanvaghani
75+
- feat: Add support for Opacity widget by @vinothvino42
76+
- feat: Add material as default icon type and update icon example by @vinothvino42
77+
- fix: filledButton onPressed and onLongPress Functionality by @ShalmonAnandas
78+
- feat: Added support for snackbar by @ishanvaghani
79+
- feat: Adding Support Placeholder by @MohamedAbd0
80+
- feat : Adding AspectRatio, FittedBox, LimitedBox Widgets by @MohamedAbd0
81+
- feat: Update Stac webview @divyanshub024
82+
- fix: Simplify table border configuration by @divyanshub024
83+
- feat: Added support for name colors by @ishanvaghani
84+
- feat: standardize parameters in buttons by @ishanvaghani
85+
- feat: Update Chip widget params by @divyanshub024
86+
- fix: change all icon button widget property from child to icon by @vinothvino42
8087

8188
## 0.8.3
8289

83-
* chore: Rename from Mirai to Stac
84-
* chore: update readme
90+
- chore: Rename from Mirai to Stac
91+
- chore: update readme
8592

8693
## 0.8.0
8794

88-
* chore: Code Refactoring :) by @divyanshub024
89-
* feat: Add Row and Column Spacing by @divyanshub024
90-
* feat: Add Stac carousel view with example by @divyanshub024
91-
* feat: Add Stac colored box parser by @divyanshub024
92-
* fix: Replace cache network image with the Image.network. by @divyanshub024
93-
* feat: Add support for the Divider widget by @bhattkrutij
94-
* feat: added ability to override stac parsers and action_parsers. by @khanjasir90
95-
* feat: Added support for stac progress indicators by @ishanvaghani
95+
- chore: Code Refactoring :) by @divyanshub024
96+
- feat: Add Row and Column Spacing by @divyanshub024
97+
- feat: Add Stac carousel view with example by @divyanshub024
98+
- feat: Add Stac colored box parser by @divyanshub024
99+
- fix: Replace cache network image with the Image.network. by @divyanshub024
100+
- feat: Add support for the Divider widget by @bhattkrutij
101+
- feat: added ability to override stac parsers and action_parsers. by @khanjasir90
102+
- feat: Added support for stac progress indicators by @ishanvaghani
96103

97104
## 0.7.2
98105

99-
* update Readme
106+
- update Readme
100107

101108
## 0.7.0
102109

103-
* Added support for new widgets: CircleAvatar, GridView, Chip, Wrap & FilledButton
104-
* Rename scrollView to SingleChildScrollView
105-
* Added defaultBottomNavigationController & bottomNavigationView
106-
* A new and better way to define Stac Network Request & Network Result
107-
* Revamp Stac Form to add form validation, getting form values and submitting Form
108-
* Use app text theme in text styles
109-
* A new way to declare EdgeInsets & BorderRadius
110-
* A lot of enhancement, refactoring and bug fixes
110+
- Added support for new widgets: CircleAvatar, GridView, Chip, Wrap & FilledButton
111+
- Rename scrollView to SingleChildScrollView
112+
- Added defaultBottomNavigationController & bottomNavigationView
113+
- A new and better way to define Stac Network Request & Network Result
114+
- Revamp Stac Form to add form validation, getting form values and submitting Form
115+
- Use app text theme in text styles
116+
- A new way to declare EdgeInsets & BorderRadius
117+
- A lot of enhancement, refactoring and bug fixes
111118

112119
## 0.6.0
113120

114-
* chore: update readme by @divyanshub024
115-
* feat: Add Stac Switch by @kushalmahapatro
116-
* :bug: fix: Failed assertion 'initialValue == null || controller == null': is not true in TextFormField by @loud-at-heart
117-
* :rocket: Added support for align widget by @loud-at-heart
118-
* feat: Added tabAlignment in stac tab bar by @i-asimkhan
119-
* fix: Added scroll physics export statement in utils.dart by @i-asimkhan
120-
* fix: Added support for `flex` in expanded widget by @i-asimkhan
121-
* feat: Added `PageView` widget parser in `stac` widget parsers by @i-asimkhan
122-
* Update banner by @divyanshub024
123-
* feat: Use app theme colors in color property by @i-asimkhan
124-
* feat: Added support for `textScaler` in Stac Text Parser by @i-asimkhan
125-
* feat: Add Stac Network Widget by @divyanshub024
126-
* feat: Added refresh-indicator to get a fresh `listView` json from the remote URL by @i-asimkhan
121+
- chore: update readme by @divyanshub024
122+
- feat: Add Stac Switch by @kushalmahapatro
123+
- :bug: fix: Failed assertion 'initialValue == null || controller == null': is not true in TextFormField by @loud-at-heart
124+
- :rocket: Added support for align widget by @loud-at-heart
125+
- feat: Added tabAlignment in stac tab bar by @i-asimkhan
126+
- fix: Added scroll physics export statement in utils.dart by @i-asimkhan
127+
- fix: Added support for `flex` in expanded widget by @i-asimkhan
128+
- feat: Added `PageView` widget parser in `stac` widget parsers by @i-asimkhan
129+
- Update banner by @divyanshub024
130+
- feat: Use app theme colors in color property by @i-asimkhan
131+
- feat: Added support for `textScaler` in Stac Text Parser by @i-asimkhan
132+
- feat: Add Stac Network Widget by @divyanshub024
133+
- feat: Added refresh-indicator to get a fresh `listView` json from the remote URL by @i-asimkhan
127134

128135
## 0.5.1
129136

@@ -168,36 +175,36 @@
168175

169176
## 0.2.0
170177

171-
* BREAKING: feat: Call `Stac.initialize` to initialize Stac (#103)
172-
* feat: Add support for iconTheme (#91)
173-
* feat: Add FractionallySizedBox widget (#100)
174-
* feat: Add support for elevatedButtonTheme (#92)
175-
* feat: Add support for outlinedButtonTheme (#93)
176-
* feat: Add support for iconButtonTheme (#94)
177-
* feat: Add center widget (#102)
178-
* feat: Add support to inject dio instance (#104)
179-
* feat: Add support for InputFormatters (#111)
180-
* feat: Add support for InputValidation (#106)
181-
* feat: Add `BoxDecoration` support for Container (#112)
182-
* feat: Add Stack and Positioned widget (#114)
183-
* chore: Update Readme (#101)
178+
- BREAKING: feat: Call `Stac.initialize` to initialize Stac (#103)
179+
- feat: Add support for iconTheme (#91)
180+
- feat: Add FractionallySizedBox widget (#100)
181+
- feat: Add support for elevatedButtonTheme (#92)
182+
- feat: Add support for outlinedButtonTheme (#93)
183+
- feat: Add support for iconButtonTheme (#94)
184+
- feat: Add center widget (#102)
185+
- feat: Add support to inject dio instance (#104)
186+
- feat: Add support for InputFormatters (#111)
187+
- feat: Add support for InputValidation (#106)
188+
- feat: Add `BoxDecoration` support for Container (#112)
189+
- feat: Add Stack and Positioned widget (#114)
190+
- chore: Update Readme (#101)
184191

185192
## 0.1.0
186193

187-
* Added Stac Theme support
188-
* Added new Stac Tab Parser
189-
* Added BoxFit support for Stac Image
190-
* Fixed AppBar size issue
191-
* Updated examples in Stac Gallery
194+
- Added Stac Theme support
195+
- Added new Stac Tab Parser
196+
- Added BoxFit support for Stac Image
197+
- Fixed AppBar size issue
198+
- Updated examples in Stac Gallery
192199

193200
## 0.0.5
194201

195-
* Update assets
202+
- Update assets
196203

197204
## 0.0.2
198205

199-
* Fix README assets
206+
- Fix README assets
200207

201208
## 0.0.1
202209

203-
* initial release 🎉
210+
- initial release 🎉

packages/stac/lib/src/parsers/foundation/effects/stac_gradient_parser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ extension StacGradientParser on StacGradient {
4444
case StacGradientType.sweep:
4545
return sweepGradient();
4646
default:
47-
return null;
47+
return linearGradient();
4848
}
4949
}
5050
}

packages/stac/lib/src/parsers/widgets/stac_align/stac_align.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'package:freezed_annotation/freezed_annotation.dart';
2-
import 'package:stac/src/parsers/widgets/stac_alignment_directional/stac_alignment_directional.dart';
32
import 'package:stac/src/parsers/widgets/stac_double/stac_double.dart';
3+
import 'package:stac_core/stac_core.dart';
44

55
export 'stac_align_parser.dart';
66

packages/stac/lib/src/parsers/widgets/stac_align/stac_align_parser.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'package:flutter/material.dart';
22
import 'package:stac/src/framework/framework.dart';
3+
import 'package:stac/src/parsers/foundation/foundation.dart';
34
import 'package:stac/src/parsers/widgets/stac_align/stac_align.dart';
45
import 'package:stac/src/parsers/widgets/stac_double/stac_double.dart';
56
import 'package:stac_core/stac_core.dart';
@@ -17,7 +18,7 @@ class StacAlignParser extends StacParser<StacAlign> {
1718
@override
1819
Widget parse(BuildContext context, StacAlign model) {
1920
return Align(
20-
alignment: model.alignment.value,
21+
alignment: model.alignment.parse,
2122
heightFactor: model.heightFactor?.parse,
2223
widthFactor: model.widthFactor?.parse,
2324
child: Stac.fromJson(model.child, context),

0 commit comments

Comments
 (0)