json_flit 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/demo/Gemfile +1 -1
  4. data/demo/Gemfile.lock +7 -3
  5. data/demo/app/controllers/welcome_controller.rb +4 -0
  6. data/demo/app/views/welcome/show.html.erb +2 -0
  7. data/lib/json_flit/builder.rb +26 -0
  8. data/lib/json_flit/factory/align.rb +7 -0
  9. data/lib/json_flit/factory/animated_align.rb +7 -0
  10. data/lib/json_flit/factory/animated_container.rb +7 -0
  11. data/lib/json_flit/factory/animated_cross_fade.rb +7 -0
  12. data/lib/json_flit/factory/animated_default_text_style.rb +7 -0
  13. data/lib/json_flit/factory/animated_opacity.rb +7 -0
  14. data/lib/json_flit/factory/animated_padding.rb +7 -0
  15. data/lib/json_flit/factory/animated_physical_model.rb +7 -0
  16. data/lib/json_flit/factory/animated_positioned.rb +7 -0
  17. data/lib/json_flit/factory/animated_positioned_directional.rb +7 -0
  18. data/lib/json_flit/factory/animated_size.rb +7 -0
  19. data/lib/json_flit/factory/animated_switcher.rb +7 -0
  20. data/lib/json_flit/factory/animated_theme.rb +7 -0
  21. data/lib/json_flit/factory/app_bar.rb +7 -0
  22. data/lib/json_flit/factory/aspect_ratio.rb +7 -0
  23. data/lib/json_flit/factory/asset_image.rb +7 -0
  24. data/lib/json_flit/factory/base.rb +7 -0
  25. data/lib/json_flit/factory/baseline.rb +7 -0
  26. data/lib/json_flit/factory/button_bar.rb +7 -0
  27. data/lib/json_flit/factory/card.rb +7 -0
  28. data/lib/json_flit/factory/center.rb +7 -0
  29. data/lib/json_flit/factory/checkbox.rb +7 -0
  30. data/lib/json_flit/factory/circular_progress_indicator.rb +7 -0
  31. data/lib/json_flit/factory/clip_oval.rb +7 -0
  32. data/lib/json_flit/factory/clip_path.rb +7 -0
  33. data/lib/json_flit/factory/clip_rect.rb +7 -0
  34. data/lib/json_flit/factory/clip_rrect.rb +7 -0
  35. data/lib/json_flit/factory/column.rb +7 -0
  36. data/lib/json_flit/factory/comment.rb +7 -0
  37. data/lib/json_flit/factory/conditional.rb +7 -0
  38. data/lib/json_flit/factory/container.rb +7 -0
  39. data/lib/json_flit/factory/cupertino_switch.rb +7 -0
  40. data/lib/json_flit/factory/custom_scroll_view.rb +7 -0
  41. data/lib/json_flit/factory/directionality.rb +7 -0
  42. data/lib/json_flit/factory/dropdown_button_form_field.rb +7 -0
  43. data/lib/json_flit/factory/dynamic.rb +7 -0
  44. data/lib/json_flit/factory/elevated_button.rb +7 -0
  45. data/lib/json_flit/factory/expanded.rb +7 -0
  46. data/lib/json_flit/factory/fitted_box.rb +7 -0
  47. data/lib/json_flit/factory/flexible.rb +7 -0
  48. data/lib/json_flit/factory/floating_action_button.rb +7 -0
  49. data/lib/json_flit/factory/form.rb +7 -0
  50. data/lib/json_flit/factory/fractional_translation.rb +7 -0
  51. data/lib/json_flit/factory/fractionally_sized.rb +7 -0
  52. data/lib/json_flit/factory/gesture_detector.rb +7 -0
  53. data/lib/json_flit/factory/grid_view.rb +7 -0
  54. data/lib/json_flit/factory/hero.rb +7 -0
  55. data/lib/json_flit/factory/icon.rb +7 -0
  56. data/lib/json_flit/factory/icon_button.rb +7 -0
  57. data/lib/json_flit/factory/ignore_pointer.rb +7 -0
  58. data/lib/json_flit/factory/indexed_stack.rb +7 -0
  59. data/lib/json_flit/factory/ink_well.rb +7 -0
  60. data/lib/json_flit/factory/input_error.rb +7 -0
  61. data/lib/json_flit/factory/interactive_viewer.rb +7 -0
  62. data/lib/json_flit/factory/intrinisic_height.rb +7 -0
  63. data/lib/json_flit/factory/intrinisic_width.rb +7 -0
  64. data/lib/json_flit/factory/limited_box.rb +7 -0
  65. data/lib/json_flit/factory/linear_progress_indicator.rb +7 -0
  66. data/lib/json_flit/factory/list_tile.rb +7 -0
  67. data/lib/json_flit/factory/list_view.rb +7 -0
  68. data/lib/json_flit/factory/material.rb +7 -0
  69. data/lib/json_flit/factory/memory_image.rb +7 -0
  70. data/lib/json_flit/factory/network_image.rb +7 -0
  71. data/lib/json_flit/factory/offstage.rb +7 -0
  72. data/lib/json_flit/factory/opacity.rb +7 -0
  73. data/lib/json_flit/factory/outlined_button.rb +7 -0
  74. data/lib/json_flit/factory/overflow_box.rb +7 -0
  75. data/lib/json_flit/factory/padding.rb +7 -0
  76. data/lib/json_flit/factory/placeholder.rb +7 -0
  77. data/lib/json_flit/factory/popup_menu_button.rb +7 -0
  78. data/lib/json_flit/factory/positioned.rb +7 -0
  79. data/lib/json_flit/factory/primary_scroll_container.rb +7 -0
  80. data/lib/json_flit/factory/radio.rb +7 -0
  81. data/lib/json_flit/factory/rich_text.rb +7 -0
  82. data/lib/json_flit/factory/row.rb +7 -0
  83. data/lib/json_flit/factory/safe_area.rb +7 -0
  84. data/lib/json_flit/factory/save_context.rb +7 -0
  85. data/lib/json_flit/factory/scaffold.rb +13 -0
  86. data/lib/json_flit/factory/scroll_configuration.rb +7 -0
  87. data/lib/json_flit/factory/scrollbar.rb +7 -0
  88. data/lib/json_flit/factory/set_default_value.rb +7 -0
  89. data/lib/json_flit/factory/set_scroll_container.rb +7 -0
  90. data/lib/json_flit/factory/set_value.rb +7 -0
  91. data/lib/json_flit/factory/single_child_scroll_view.rb +7 -0
  92. data/lib/json_flit/factory/sized_box.rb +7 -0
  93. data/lib/json_flit/factory/sliver_grid.rb +7 -0
  94. data/lib/json_flit/factory/sliver_list.rb +7 -0
  95. data/lib/json_flit/factory/sliver_padding.rb +7 -0
  96. data/lib/json_flit/factory/sliver_to_box_adapter.rb +7 -0
  97. data/lib/json_flit/factory/stack.rb +7 -0
  98. data/lib/json_flit/factory/switch.rb +7 -0
  99. data/lib/json_flit/factory/text.rb +7 -0
  100. data/lib/json_flit/factory/text_button.rb +7 -0
  101. data/lib/json_flit/factory/text_form_field.rb +7 -0
  102. data/lib/json_flit/factory/theme.rb +7 -0
  103. data/lib/json_flit/factory/tooltip.rb +7 -0
  104. data/lib/json_flit/factory/tween_animation.rb +7 -0
  105. data/lib/json_flit/factory/wrap.rb +7 -0
  106. data/lib/json_flit/registry.rb +98 -98
  107. data/lib/json_flit/version.rb +1 -1
  108. data/lib/json_flit.rb +3 -0
  109. metadata +101 -2
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class NetworkImage
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class Offstage
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class Opacity
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class OutlinedButton
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class OverflowBox
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class Padding
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class Placeholder
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class PopupMenuButton
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class Positioned
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class PrimaryScrollContainer
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class Radio
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class RichText
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class Row
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class SafeArea
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class SaveContext
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,13 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class Scaffold
4
+ def initialize(data:)
5
+ @data = data
6
+ end
7
+
8
+ def build
9
+ Flit::ScaffoldComponent.new(@data)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class ScrollConfiguration
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class Scrollbar
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class SetDefaultValue
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class SetScrollContainer
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class SetValue
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class SingleChildScrollView
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class SizedBox
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class SliverGrid
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class SliverList
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class SliverPadding
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class SliverToBoxAdapter
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class Stack
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class Switch
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class Text
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class TextButton
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class TextFormField
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class Theme
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class Tooltip
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class TweenAnimation
4
+
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module JsonFlit
2
+ module Factory
3
+ class Wrap
4
+
5
+ end
6
+ end
7
+ end
@@ -1,104 +1,104 @@
1
1
  module JsonFlit
2
2
  class Registry
3
3
  DEFAULT_COMPONENT_LIST = {
4
- 'align' => 'Flit::AlignComponent',
5
- 'animated_align' => 'Flit::AnimatedAlignComponent',
6
- 'animated_container' => 'Flit::AnimatedContainerComponent',
7
- 'animated_cross_fade' => 'Flit::AnimatedCrossFadeComponent',
8
- 'animated_default_text_style' => 'Flit::AnimatedDefaultTextStyleComponent',
9
- 'animated_opacity' => 'Flit::AnimatedOpacityComponent',
10
- 'animated_padding' => 'Flit::AnimatedPaddingComponent',
11
- 'animated_physical_model' => 'Flit::AnimatedPhysicalModelComponent',
12
- 'animated_positioned' => 'Flit::AnimatedPositionedComponent',
13
- 'animated_positioned_directional' => 'Flit::AnimatedPositionedDirectionalComponent',
14
- 'animated_size' => 'Flit::AnimateSizeComponent',
15
- 'animated_switcher' => 'Flit::AnimatedSwitcherComponent',
16
- 'animated_theme' => 'Flit::AnimatedThemeComponent',
17
- 'app_bar' => 'Flit::AppBarComponent',
18
- 'aspect_ratio' => 'Flit::AspectRatioComponent',
19
- 'asset_image' => 'Flit::AssetImageComponent',
20
- 'base' => 'Flit::BaseComponent',
21
- 'baseline' => 'Flit::BaselineComponent',
22
- 'button_bar' => 'Flit::ButtonBarComponent',
23
- 'card' => 'Flit::CardComponent',
24
- 'center' => 'Flit::CenterComponent',
25
- 'checkbox' => 'Flit::CheckboxComponent',
26
- 'circular_progress_indicator' => 'Flit::CircularProgressIndicatorComponent',
27
- 'clip_oval' => 'Flit::ClipOvalComponent',
28
- 'clip_path' => 'Flit::ClipPathComponent',
29
- 'clip_rect' => 'Flit::ClipRectComponent',
30
- 'clip_rrect' => 'Flit::ClipRrectComponent',
31
- 'column' => 'Flit::ColumnComponent',
32
- 'comment' => 'Flit::CommentComponent',
33
- 'conditional' => 'Flit::ConditionalComponent',
34
- 'container' => 'Flit::ContainerComponent',
35
- 'cupertino_switch' => 'Flit::CupertinoSwitchComponent',
36
- 'custom_scroll_view' => 'Flit::CustomScrollViewComponent',
37
- 'directionality' => 'Flit::DirectionalityComponent',
38
- 'dropdown_button_form_field' => 'Flit::DropdownButtonFormFieldComponent',
39
- 'dynamic' => 'Flit::DynamicComponent',
40
- 'elevated_button' => 'Flit::ElevatedComponent',
41
- 'expanded' => 'Flit::ExpandedComponent',
42
- 'fitted_box' => 'Flit::FittedBoxComponent',
43
- 'flexible' => 'Flit::FlexibleComponent',
44
- 'floating_action_button' => 'Flit::FloatingActionButtonComponent',
45
- 'form' => 'Flit::FormComponent',
46
- 'fractional_translation' => 'Flit::FractionalTranslationComponent',
47
- 'fractionally_sized' => 'Flit::FractionallySizedComponent',
48
- 'gesture_detector' => 'Flit::GestureDetectorComponent',
49
- 'grid_view' => 'Flit::GridViewComponent',
50
- 'hero' => 'Flit::HeroComponent',
51
- 'icon_button' => 'Flit::IconButtonComponent',
52
- 'icon' => 'Flit::IconComponent',
53
- 'ignore_pointer' => 'Flit::IgnorePointerComponent',
54
- 'indexed_stack' => 'Flit::IndexedStackComponent',
55
- 'ink_well' => 'Flit::InkWellComponent',
56
- 'input_error' => 'Flit::InputErrorComponent',
57
- 'interactive_viewer' => 'Flit::InteractiveViewerComponent',
58
- 'intrinsic_height' => 'Flit::IntrinsicHeightComponent',
59
- 'intrinsic_width' => 'Flit::IntinsicWidthComponent',
60
- 'limited_box' => 'Flit::LimitedBoxComponent',
61
- 'linear_progress_indicator' => 'Flit::LinearProgressIndidicatorComponent',
62
- 'list_tile' => 'Flit::ListTileComponent',
63
- 'list_view' => 'Flit::ListViewComponent',
64
- 'material' => 'Flit::MaterialComponent',
65
- 'memory_image' => 'Flit::MemoryImageComponent',
66
- 'network_image' => 'Flit::NetworkImageComponent',
67
- 'offstage' => 'Flit::OffstageComponent',
68
- 'opacity' => 'Flit::OpacityComponent',
69
- 'outlined_button' => 'Flit::OutlinedButtonComponent',
70
- 'overflow_box' => 'Flit::OverflowBoxComponent',
71
- 'padding' => 'Flit::PaddingComponent',
72
- 'placeholder' => 'Flit::PlaceholderComponent',
73
- 'popup_menu_button' => 'Flit::PopupMenuButtonComponent',
74
- 'positioned' => 'Flit::PositionedComponent',
75
- 'primary_scroll_container' => 'Flit::PrimaryScrollContainerComponent',
76
- 'radio' => 'Flit::RadioComponent',
77
- 'rich_text' => 'Flit::RichTextComponent',
78
- 'row' => 'Flit::RowComponent',
79
- 'safe_area' => 'Flit::SafeAreaComponent',
80
- 'save_context' => 'Flit::SaveContextComponent',
81
- 'scaffold' => 'Flit::ScaffoldComponent',
82
- 'scroll_configuration' => 'Flit::ScrollConfigurationComponent',
83
- 'scrollbar' => 'Flit::ScrollbarComponent',
84
- 'set_default_value' => 'Flit::SetDefaultValueComponent',
85
- 'set_scroll_container' => 'Flit::SetScrollContainerComponent',
86
- 'set_value' => 'Flit::SetValueComponent',
87
- 'single_child_scroll_view' => 'Flit::SingleChildScrollViewComponent',
88
- 'sized_box' => 'Flit::SizedBoxComponent',
89
- 'sliver_grid' => 'Flit::SliverGridComponent',
90
- 'sliver_list' => 'Flit::SliverListComponent',
91
- 'sliver_padding' => 'Flit::SliverPaddingComponent',
92
- 'sliver_to_box_adapter' => 'Flit::SliverToBoxAdapterComponent',
93
- 'stack' => 'Flit::StackComponent',
94
- 'switch' => 'Flit::SwitchComponent',
95
- 'text_button' => 'Flit::TextButtonComponent',
96
- 'text' => 'Flit::TextComponent',
97
- 'text_form_field' => 'Flit::TextFormFieldComponent',
98
- 'theme' => 'Flit::ThemeComponent',
99
- 'tooltip' => 'Flit::TooltipComponent',
100
- 'tween_animation' => 'Flit::TweenAnimationComponent',
101
- 'wrap' => 'Flit::WrapComponent'
4
+ 'align' => 'JsonFlit::Factory::Align',
5
+ 'animated_align' => 'JsonFlit::Factory::AnimatedAlign',
6
+ 'animated_container' => 'JsonFlit::Factory::AnimatedContainer',
7
+ 'animated_cross_fade' => 'JsonFlit::Factory::AnimatedCrossFade',
8
+ 'animated_default_text_style' => 'JsonFlit::Factory::AnimatedDefaultTextStyle',
9
+ 'animated_opacity' => 'JsonFlit::Factory::AnimatedOpacity',
10
+ 'animated_padding' => 'JsonFlit::Factory::AnimatedPadding',
11
+ 'animated_physical_model' => 'JsonFlit::Factory::AnimatedPhysicalModel',
12
+ 'animated_positioned' => 'JsonFlit::Factory::AnimatedPositioned',
13
+ 'animated_positioned_directional' => 'JsonFlit::Factory::AnimatedPositionedDirectional',
14
+ 'animated_size' => 'JsonFlit::Factory::AnimateSize',
15
+ 'animated_switcher' => 'JsonFlit::Factory::AnimatedSwitcher',
16
+ 'animated_theme' => 'JsonFlit::Factory::AnimatedTheme',
17
+ 'app_bar' => 'JsonFlit::Factory::AppBar',
18
+ 'aspect_ratio' => 'JsonFlit::Factory::AspectRatio',
19
+ 'asset_image' => 'JsonFlit::Factory::AssetImage',
20
+ 'base' => 'JsonFlit::Factory::Base',
21
+ 'baseline' => 'JsonFlit::Factory::Baseline',
22
+ 'button_bar' => 'JsonFlit::Factory::ButtonBar',
23
+ 'card' => 'JsonFlit::Factory::Card',
24
+ 'center' => 'JsonFlit::Factory::Center',
25
+ 'checkbox' => 'JsonFlit::Factory::Checkbox',
26
+ 'circular_progress_indicator' => 'JsonFlit::Factory::CircularProgressIndicator',
27
+ 'clip_oval' => 'JsonFlit::Factory::ClipOval',
28
+ 'clip_path' => 'JsonFlit::Factory::ClipPath',
29
+ 'clip_rect' => 'JsonFlit::Factory::ClipRect',
30
+ 'clip_rrect' => 'JsonFlit::Factory::ClipRrect',
31
+ 'column' => 'JsonFlit::Factory::Column',
32
+ 'comment' => 'JsonFlit::Factory::Comment',
33
+ 'conditional' => 'JsonFlit::Factory::Conditional',
34
+ 'container' => 'JsonFlit::Factory::Container',
35
+ 'cupertino_switch' => 'JsonFlit::Factory::CupertinoSwitch',
36
+ 'custom_scroll_view' => 'JsonFlit::Factory::CustomScrollView',
37
+ 'directionality' => 'JsonFlit::Factory::Directionality',
38
+ 'dropdown_button_form_field' => 'JsonFlit::Factory::DropdownButtonFormField',
39
+ 'dynamic' => 'JsonFlit::Factory::Dynamic',
40
+ 'elevated_button' => 'JsonFlit::Factory::ElevatedButton',
41
+ 'expanded' => 'JsonFlit::Factory::Expanded',
42
+ 'fitted_box' => 'JsonFlit::Factory::FittedBox',
43
+ 'flexible' => 'JsonFlit::Factory::Flexible',
44
+ 'floating_action_button' => 'JsonFlit::Factory::FloatingActionButton',
45
+ 'form' => 'JsonFlit::Factory::Form',
46
+ 'fractional_translation' => 'JsonFlit::Factory::FractionalTranslation',
47
+ 'fractionally_sized' => 'JsonFlit::Factory::FractionallySized',
48
+ 'gesture_detector' => 'JsonFlit::Factory::GestureDetector',
49
+ 'grid_view' => 'JsonFlit::Factory::GridView',
50
+ 'hero' => 'JsonFlit::Factory::Hero',
51
+ 'icon_button' => 'JsonFlit::Factory::IconButton',
52
+ 'icon' => 'JsonFlit::Factory::Icon',
53
+ 'ignore_pointer' => 'JsonFlit::Factory::IgnorePointer',
54
+ 'indexed_stack' => 'JsonFlit::Factory::IndexedStack',
55
+ 'ink_well' => 'JsonFlit::Factory::InkWell',
56
+ 'input_error' => 'JsonFlit::Factory::InputError',
57
+ 'interactive_viewer' => 'JsonFlit::Factory::InteractiveViewer',
58
+ 'intrinsic_height' => 'JsonFlit::Factory::IntrinsicHeight',
59
+ 'intrinsic_width' => 'JsonFlit::Factory::IntinsicWidth',
60
+ 'limited_box' => 'JsonFlit::Factory::LimitedBox',
61
+ 'linear_progress_indicator' => 'JsonFlit::Factory::LinearProgressIndidicator',
62
+ 'list_tile' => 'JsonFlit::Factory::ListTile',
63
+ 'list_view' => 'JsonFlit::Factory::ListView',
64
+ 'material' => 'JsonFlit::Factory::Material',
65
+ 'memory_image' => 'JsonFlit::Factory::MemoryImage',
66
+ 'network_image' => 'JsonFlit::Factory::NetworkImage',
67
+ 'offstage' => 'JsonFlit::Factory::Offstage',
68
+ 'opacity' => 'JsonFlit::Factory::Opacity',
69
+ 'outlined_button' => 'JsonFlit::Factory::OutlinedButton',
70
+ 'overflow_box' => 'JsonFlit::Factory::OverflowBox',
71
+ 'padding' => 'JsonFlit::Factory::Padding',
72
+ 'placeholder' => 'JsonFlit::Factory::Placeholder',
73
+ 'popup_menu_button' => 'JsonFlit::Factory::PopupMenuButton',
74
+ 'positioned' => 'JsonFlit::Factory::Positioned',
75
+ 'primary_scroll_container' => 'JsonFlit::Factory::PrimaryScrollContainer',
76
+ 'radio' => 'JsonFlit::Factory::Radio',
77
+ 'rich_text' => 'JsonFlit::Factory::RichText',
78
+ 'row' => 'JsonFlit::Factory::Row',
79
+ 'safe_area' => 'JsonFlit::Factory::SafeArea',
80
+ 'save_context' => 'JsonFlit::Factory::SaveContext',
81
+ 'scaffold' => 'JsonFlit::Factory::Scaffold',
82
+ 'scroll_configuration' => 'JsonFlit::Factory::ScrollConfiguration',
83
+ 'scrollbar' => 'JsonFlit::Factory::Scrollbar',
84
+ 'set_default_value' => 'JsonFlit::Factory::SetDefaultValue',
85
+ 'set_scroll_container' => 'JsonFlit::Factory::SetScrollContainer',
86
+ 'set_value' => 'JsonFlit::Factory::SetValue',
87
+ 'single_child_scroll_view' => 'JsonFlit::Factory::SingleChildScrollView',
88
+ 'sized_box' => 'JsonFlit::Factory::SizedBox',
89
+ 'sliver_grid' => 'JsonFlit::Factory::SliverGrid',
90
+ 'sliver_list' => 'JsonFlit::Factory::SliverList',
91
+ 'sliver_padding' => 'JsonFlit::Factory::SliverPadding',
92
+ 'sliver_to_box_adapter' => 'JsonFlit::Factory::SliverToBoxAdapter',
93
+ 'stack' => 'JsonFlit::Factory::Stack',
94
+ 'switch' => 'JsonFlit::Factory::Switch',
95
+ 'text_button' => 'JsonFlit::Factory::TextButton',
96
+ 'text' => 'JsonFlit::Factory::Text',
97
+ 'text_form_field' => 'JsonFlit::Factory::TextFormField',
98
+ 'theme' => 'JsonFlit::Factory::Theme',
99
+ 'tooltip' => 'JsonFlit::Factory::Tooltip',
100
+ 'tween_animation' => 'JsonFlit::Factory::TweenAnimation',
101
+ 'wrap' => 'JsonFlit::Factory::Wrap'
102
102
  }.freeze
103
103
 
104
104
  DEFAULT_METHOD_LIST = {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JsonFlit
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
data/lib/json_flit.rb CHANGED
@@ -1,6 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "json_flit/version"
4
+ require_relative "json_flit/registry"
5
+ require_relative "json_flit/builder"
6
+ Dir["#{File.dirname(__FILE__)}/json_flit/factory/**/*.rb"].each { |f| require f }
4
7
 
5
8
  module JsonFlit
6
9
  class Error < StandardError; end