simple_widget_markup 7.2.0 simple_widget_markup: ^7.2.0 copied to clipboard
This is an option that allows you to statically create layouts.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add simple_widget_markup
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
simple_widget_markup: ^7.2.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:simple_widget_markup/element/spwml_font_style.dart';
import 'package:simple_widget_markup/element/spwml_font_style_material.dart';
import 'package:simple_widget_markup/element/sub/button/btn_element.dart';
import 'package:simple_widget_markup/element/sub/button/checkbox_element.dart';
import 'package:simple_widget_markup/element/sub/button/dropdown_btn_element.dart';
import 'package:simple_widget_markup/element/sub/button/popupmenu_btn_element.dart';
import 'package:simple_widget_markup/element/sub/button/radio_btn_element.dart';
import 'package:simple_widget_markup/element/sub/button/switch_btn_element.dart';
import 'package:simple_widget_markup/element/sub/other/icon_element.dart';
import 'package:simple_widget_markup/element/sub/other/img_element.dart';
import 'package:simple_widget_markup/element/sub/other/line_element.dart';
import 'package:simple_widget_markup/element/sub/other/vline_element.dart';
import 'package:simple_widget_markup/element/sub/structure/block_element.dart';
import 'package:simple_widget_markup/element/sub/structure/card_element.dart';
import 'package:simple_widget_markup/element/sub/structure/col_element.dart';
import 'package:simple_widget_markup/element/sub/structure/exp_tile_element.dart';
import 'package:simple_widget_markup/element/sub/structure/row_element.dart';
import 'package:simple_widget_markup/element/sub/structure/scroll_element.dart';
import 'package:simple_widget_markup/element/sub/structure/span_element.dart';
import 'package:simple_widget_markup/element/sub/structure/stack_element.dart';
import 'package:simple_widget_markup/element/sub/structure/table_element.dart';
import 'package:simple_widget_markup/element/sub/structure/table_row_element.dart';
import 'package:simple_widget_markup/element/sub/structure/wrap_element.dart';
import 'package:simple_widget_markup/element/sub/text/href_element.dart';
import 'package:simple_widget_markup/element/sub/text/ruby_text_element.dart';
import 'package:simple_widget_markup/element/sub/text/text_element.dart';
import 'package:simple_widget_markup/element/sub/text/text_field_element.dart';
import 'package:simple_widget_markup/element/super/spwml_element.dart';
import 'package:simple_widget_markup/element/util_element.dart';
import 'package:simple_widget_markup/element_params/element_child.dart';
import 'package:simple_widget_markup/element_params/sub/button/btn_params.dart';
import 'package:simple_widget_markup/element_params/sub/button/checkbox_params.dart';
import 'package:simple_widget_markup/element_params/sub/button/dropdown_btn_params.dart';
import 'package:simple_widget_markup/element_params/sub/button/popupmenu_btn_params.dart';
import 'package:simple_widget_markup/element_params/sub/button/radio_btn_params.dart';
import 'package:simple_widget_markup/element_params/sub/button/switch_btn_params.dart';
import 'package:simple_widget_markup/element_params/sub/other/icon_element_params.dart';
import 'package:simple_widget_markup/element_params/sub/other/img_element_params.dart';
import 'package:simple_widget_markup/element_params/sub/other/line_element_params.dart';
import 'package:simple_widget_markup/element_params/sub/other/vline_element_params.dart';
import 'package:simple_widget_markup/element_params/sub/structure/card_params.dart';
import 'package:simple_widget_markup/element_params/sub/structure/exp_tile_params.dart';
import 'package:simple_widget_markup/element_params/sub/structure/row_col_params.dart';
import 'package:simple_widget_markup/element_params/sub/structure/scroll_params.dart';
import 'package:simple_widget_markup/element_params/sub/structure/span_params.dart';
import 'package:simple_widget_markup/element_params/sub/structure/stack_params.dart';
import 'package:simple_widget_markup/element_params/sub/structure/table_params.dart';
import 'package:simple_widget_markup/element_params/sub/structure/table_row_params.dart';
import 'package:simple_widget_markup/element_params/sub/structure/wrap_params.dart';
import 'package:simple_widget_markup/element_params/sub/text/href_params.dart';
import 'package:simple_widget_markup/element_params/sub/text/ruby_text_params.dart';
import 'package:simple_widget_markup/element_params/sub/text/text_params.dart';
import 'package:simple_widget_markup/element_params/sub/text/textfield_params.dart';
import 'package:simple_widget_markup/element_params/super/spwml_params.dart';
import 'package:simple_widget_markup/enum/enum_btn_type.dart';
import 'package:simple_widget_markup/enum/enum_img_type.dart';
import 'package:simple_widget_markup/enum/enum_spwml_element_type.dart';
import 'package:simple_widget_markup/enum/enum_spwml_params.dart';
import 'package:simple_widget_markup/enum/enum_textfield_params.dart';
import 'package:simple_widget_markup/spwml.dart';
import 'package:simple_widget_markup/spwml_builder.dart';
import 'package:simple_widget_markup/spwml_exception.dart';
import 'package:simple_widget_markup/spwml_parser.dart';
import 'package:simple_widget_markup/util_parser.dart';