Update grid size quiz
This commit is contained in:
parent
38a5609550
commit
24ef94f6af
@ -69,7 +69,7 @@ class _QuestionsListWidget extends State<QuestionsListWidget> {
|
||||
currentIndex = index + 1;
|
||||
});
|
||||
},
|
||||
height: widget.isShowResponse ? widget.orientation == Orientation.portrait ? MediaQuery.of(context).size.height * 0.79 : MediaQuery.of(context).size.height * 0.6 : MediaQuery.of(context).size.height * 0.78,
|
||||
height: widget.isShowResponse ? widget.orientation == Orientation.portrait ? MediaQuery.of(context).size.height * 0.79 : MediaQuery.of(context).size.height * 0.6 : MediaQuery.of(context).size.height * 0.85,
|
||||
enlargeCenterPage: true,
|
||||
scrollPhysics: const NeverScrollableScrollPhysics(),
|
||||
reverse: false,
|
||||
@ -158,8 +158,8 @@ class _QuestionsListWidget extends State<QuestionsListWidget> {
|
||||
child: GridView.builder(
|
||||
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
||||
crossAxisCount: widget.orientation == Orientation.portrait ? 1 : 2, // TODO HERE IS TABLET
|
||||
mainAxisExtent: widget.isShowResponse ? widget.orientation == Orientation.portrait ? 70 : 50 : 65, // TODO depends on percentage
|
||||
mainAxisSpacing: widget.isShowResponse ? widget.orientation == Orientation.portrait ? 35 : 10 : 42.5, // TODO depends on percentage
|
||||
mainAxisExtent: widget.isShowResponse ? widget.orientation == Orientation.portrait ? 60 : 50 : 60, // TODO depends on percentage
|
||||
mainAxisSpacing: widget.isShowResponse ? widget.orientation == Orientation.portrait ? 30 : 10 : 32.5, // TODO depends on percentage
|
||||
crossAxisSpacing: widget.isShowResponse ? 0 : 0, // TODO depends on percentage
|
||||
),
|
||||
itemCount: i.responsesSubDTO!.length,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user