mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 08:31:19 +00:00
Update layout for ios
This commit is contained in:
parent
460609d061
commit
edf53f0be0
@ -432,6 +432,8 @@ class _MainViewWidget extends State<MainViewWidget> {
|
|||||||
|
|
||||||
getGridSections(AppContext appContext) {
|
getGridSections(AppContext appContext) {
|
||||||
if(sectionsLocal != null) {
|
if(sectionsLocal != null) {
|
||||||
|
var isPortrait = MediaQuery.of(context).orientation == Orientation.portrait;
|
||||||
|
|
||||||
return Center(
|
return Center(
|
||||||
child: GridView.builder(
|
child: GridView.builder(
|
||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
@ -467,7 +469,7 @@ class _MainViewWidget extends State<MainViewWidget> {
|
|||||||
customStylesBuilder: (element) {
|
customStylesBuilder: (element) {
|
||||||
return {'text-align': 'right'};
|
return {'text-align': 'right'};
|
||||||
},
|
},
|
||||||
textStyle: TextStyle(fontSize: 25),//calculateFontSize(constraints.maxWidth, constraints.maxHeight, kIsWeb ? kWebMenuTitleDetailSize : kMenuTitleDetailSize)),
|
textStyle: TextStyle(fontSize: isPortrait ? 10 : 25),//calculateFontSize(constraints.maxWidth, constraints.maxHeight, kIsWeb ? kWebMenuTitleDetailSize : kMenuTitleDetailSize)),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -483,7 +485,7 @@ class _MainViewWidget extends State<MainViewWidget> {
|
|||||||
customStylesBuilder: (element) {
|
customStylesBuilder: (element) {
|
||||||
return {'text-align': 'right'};
|
return {'text-align': 'right'};
|
||||||
},
|
},
|
||||||
textStyle: TextStyle(fontSize: 20),//calculateFontSize(constraints.maxWidth, constraints.maxHeight, kIsWeb ? kWebMenuTitleDetailSize : kMenuTitleDetailSize)),
|
textStyle: TextStyle(fontSize: isPortrait ? 5 : 15),//calculateFontSize(constraints.maxWidth, constraints.maxHeight, kIsWeb ? kWebMenuTitleDetailSize : kMenuTitleDetailSize)),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user