Skip to content
This repository was archived by the owner on Feb 16, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
workflow_dispatch:
pull_request:
branches: [main]
types: [opened, reopened, synchronize]

jobs:
build:
Expand All @@ -29,4 +30,3 @@ jobs:
with:
generate_code: true
path: packages/json_dynamic_widget

5 changes: 5 additions & 0 deletions packages/annotation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [3.0.1] - November 9th, 2025

* Flutter 3.35


## [3.0.0] - June 17th, 2025

* Upgraded `flutter_lints` to `^6.0.0`.
Expand Down
20 changes: 9 additions & 11 deletions packages/annotation/lib/dynamic_widget_annotation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import 'dart:convert';

import 'package:meta/meta_meta.dart';

const jsonWidget = JsonWidget(
autoRegister: true,
);
const jsonWidget = JsonWidget(autoRegister: true, requiresId: false);
const jsonWidgetRegistrar = JsonWidgetRegistrar();

/// An annotation to be placed on the building `buildCustom` function that can
Expand All @@ -14,10 +12,7 @@ const jsonWidgetRegistrar = JsonWidgetRegistrar();
/// [SliverGrid] for consistency).
@Target({TargetKind.method})
class JsonArgAlias {
const JsonArgAlias({
required this.alias,
required this.name,
});
const JsonArgAlias({required this.alias, required this.name});

final String alias;
final String name;
Expand Down Expand Up @@ -94,10 +89,7 @@ class JsonBuilder {
/// [String].
@Target({TargetKind.method})
class JsonDefaultParam {
const JsonDefaultParam(
this.name,
this.code,
);
const JsonDefaultParam(this.name, this.code);

final String code;
final String name;
Expand Down Expand Up @@ -135,6 +127,10 @@ class JsonSchemaName {
/// The [autoRegister] can be set to `false` to skip adding the widget to the
/// default registrar.
///
/// When the [requiresId] is true, that informs the code generator that this
/// particular widget needs a provided id to function correctly or else an error
/// or unexpected behavior may be encountered.
///
/// The [type] can override the widget JSON type that is generated for the
/// widget. By default the type is a snake_case'd version of the Widget. For
/// example, `ListView` becomes `list_view`. However, there may be times where
Expand All @@ -149,12 +145,14 @@ class JsonWidget {
const JsonWidget({
this.autoRegister = true,
this.jsonWidget,
this.requiresId = false,
this.type,
this.widget,
});

final bool autoRegister;
final String? jsonWidget;
final bool requiresId;
final String? type;
final String? widget;
}
Expand Down
6 changes: 3 additions & 3 deletions packages/annotation/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: 'dynamic_widget_annotation'
description: 'Annotations for the json_dynamic_widget library.'
homepage: 'https://github.com/peiffer-innovations/json_dynamic_widget'
version: '3.0.0'
version: '3.0.1'

environment:
sdk: '^3.8.1'
sdk: '^3.9.0'
resolution: workspace

analyzer:
Expand All @@ -17,7 +17,7 @@ dependencies:

dev_dependencies:
flutter_lints: '^6.0.0'
test: '^1.25.0'
test: ^1.26.3

permittedLicenses:
- 'Apache-2.0'
Expand Down
7 changes: 7 additions & 0 deletions packages/codegen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [4.0.0] - November 9th, 2025

* Updated generaters to the latest version
Comment thread
jpeiffer marked this conversation as resolved.
* Flutter 3.35


## [3.0.0] - June 17th, 2025

* Updated `flutter_lints` to `^6.0.0`.
Expand All @@ -9,6 +15,7 @@

* Pegged [analyzer depenendency to be <7.4](https://pub.dev/packages/analyzer/changelog#740) because Dart is preparing a breaking change (via deprecation) but hasn't bothered to update the [source_gen](https://pub.dev/packages/source_gen) package to absorb said breaking change yet so it breaks generators with no good way to fix the break, or ignore the warnings; which is rarely a great idea either.


## [2.1.0+3] - March 11, 2025

* Automated dependency updates
Expand Down
2 changes: 1 addition & 1 deletion packages/codegen/lib/json_dynamic_widget_codegen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ export 'src/builder/json_widget_registrar_builder.dart';
export 'src/decoder/decoders.dart';
export 'src/decoder/schema_decoders.dart';
//
export 'src/extension/dart_type_extension.dart';
export 'src/model/param.dart';
//
export 'src/util/widget_metadata.dart';
Loading
Loading