@@ -368,26 +368,56 @@ class _ScreenLockState extends State<ScreenLock> {
368368
369369 Widget buildContent () {
370370 return OrientationBuilder (
371- builder: (context, orientation) => Column (
372- mainAxisAlignment: MainAxisAlignment .center,
373- children: [
374- Flex (
375- mainAxisAlignment: MainAxisAlignment .spaceEvenly,
376- direction: orientations[orientation]! ,
371+ builder: (context, orientation) {
372+ if (widget.footer == null ) {
373+ return Column (
374+ mainAxisAlignment: MainAxisAlignment .center,
375+ crossAxisAlignment: CrossAxisAlignment .center,
377376 children: [
378- Column (
379- mainAxisAlignment: MainAxisAlignment .center,
377+ Flex (
378+ mainAxisAlignment: MainAxisAlignment .spaceEvenly,
379+ direction: orientations[orientation]! ,
380380 children: [
381- buildHeadingText (),
382- buildSecrets (),
381+ Column (
382+ mainAxisAlignment: MainAxisAlignment .center,
383+ children: [
384+ buildHeadingText (),
385+ buildSecrets (),
386+ ],
387+ ),
388+ buildKeyPad (),
383389 ],
384390 ),
385- buildKeyPad (),
386391 ],
392+ );
393+ }
394+
395+ return Center (
396+ child: SingleChildScrollView (
397+ child: Column (
398+ mainAxisAlignment: MainAxisAlignment .center,
399+ crossAxisAlignment: CrossAxisAlignment .center,
400+ children: [
401+ Flex (
402+ mainAxisAlignment: MainAxisAlignment .spaceEvenly,
403+ direction: orientations[orientation]! ,
404+ children: [
405+ Column (
406+ mainAxisAlignment: MainAxisAlignment .center,
407+ children: [
408+ buildHeadingText (),
409+ buildSecrets (),
410+ ],
411+ ),
412+ buildKeyPad (),
413+ ],
414+ ),
415+ widget.footer! ,
416+ ],
417+ ),
387418 ),
388- if (widget.footer != null ) widget.footer! ,
389- ],
390- ),
419+ );
420+ },
391421 );
392422 }
393423
0 commit comments