Schaban

Readme

Showing 1 changed file with 25 additions and 0 deletions
@@ -53,6 +53,8 @@ @@ -53,6 +53,8 @@
53 - [ObxValue](#obxvalue) 53 - [ObxValue](#obxvalue)
54 - [Useful tips](#useful-tips) 54 - [Useful tips](#useful-tips)
55 - [GetView](#getview) 55 - [GetView](#getview)
  56 + - [GetResponsiveView](#getresponsiveview)
  57 + - [How to use it](#how-to-use-it)
56 - [GetWidget](#getwidget) 58 - [GetWidget](#getwidget)
57 - [GetxService](#getxservice) 59 - [GetxService](#getxservice)
58 - [Breaking changes from 2.0](#breaking-changes-from-20) 60 - [Breaking changes from 2.0](#breaking-changes-from-20)
@@ -903,6 +905,29 @@ Is a `const Stateless` Widget that has a getter `controller` for a registered `C @@ -903,6 +905,29 @@ Is a `const Stateless` Widget that has a getter `controller` for a registered `C
903 } 905 }
904 ``` 906 ```
905 907
  908 +#### GetResponsiveView
  909 +
  910 +Extend this widget to build responsive view.
  911 +this widget contains the `screen` property that have all
  912 +information about the screen size and type.
  913 +
  914 +##### How to use it
  915 +
  916 +You have two options to build it.
  917 +
  918 +- with `builder` method you return the widget to build.
  919 +- with methods `desktop`, `tablet`,`phone`, `watch`. the specific
  920 +method will be built when the screen type matches the method
  921 +when the screen is [ScreenType.Tablet] the `tablet` method
  922 +will be exuded and so on.
  923 +**Note:** If you use this method please set the property `alwaysUseBuilder` to `false`
  924 +
  925 +With `settings` property you can set the width limit for the screen types.
  926 +
  927 +![example](https://github.com/SchabanBo/get_page_example/blob/master/docs/Example.gif?raw=true)
  928 +Code to this screen
  929 +[code](https://github.com/SchabanBo/get_page_example/blob/master/lib/pages/responsive_example/responsive_view.dart)
  930 +
906 #### GetWidget 931 #### GetWidget
907 932
908 Most people have no idea about this Widget, or totally confuse the usage of it. 933 Most people have no idea about this Widget, or totally confuse the usage of it.