From 723e7f13122cfe871134e992da2c6ca66a7d600b Mon Sep 17 00:00:00 2001 From: poka Date: Sun, 28 Feb 2021 07:12:10 +0100 Subject: [PATCH] Good blur view for restore sentence --- lib/screens/onBoarding/8_stepEight.dart | 77 +++++++++++++++++++++---- lib/screens/onBoarding/9_stepNine.dart | 2 +- 2 files changed, 68 insertions(+), 11 deletions(-) diff --git a/lib/screens/onBoarding/8_stepEight.dart b/lib/screens/onBoarding/8_stepEight.dart index 2601f20..b72fe30 100644 --- a/lib/screens/onBoarding/8_stepEight.dart +++ b/lib/screens/onBoarding/8_stepEight.dart @@ -1,8 +1,9 @@ +import 'dart:ui'; + import 'package:bubble/bubble.dart'; import 'package:flutter/services.dart'; import 'package:flutter/material.dart'; import 'package:gecko/screens/commonElements.dart'; -import 'package:gecko/screens/onBoarding/7_stepSeven.dart'; import 'package:gecko/screens/onBoarding/9_stepNine.dart'; // ignore: must_be_immutable @@ -67,15 +68,11 @@ class OnboardingStepEight extends StatelessWidget { ), ), SizedBox(height: 10), - // Row(children: [ - // Align( - // alignment: Alignment.centerRight, - // child: - Image.asset( - 'assets/onBoarding/phrase_de_restauration_flou.png', - height: 300, - ), - // ]), + // ImageFiltered( + // imageFilter: ImageFilter.blur(sigmaX: 2.5, sigmaY: 2.5), + // child: + sentanceArray(context), + // ), Expanded( child: Align( alignment: Alignment.bottomCenter, @@ -132,3 +129,63 @@ class GeckoSpeechAppBar extends StatelessWidget with PreferredSizeWidget { )); } } + +Widget sentanceArray(BuildContext context) { + return Container( + padding: EdgeInsets.symmetric(horizontal: 12), + child: Container( + decoration: BoxDecoration( + border: Border.all(color: Colors.black), + color: Colors.grey[300], + borderRadius: BorderRadius.all( + const Radius.circular(10), + )), + // color: Colors.grey[300], + padding: EdgeInsets.all(20), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + mainAxisSize: MainAxisSize.max, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Row(children: [ + arrayCell("1:exquis"), + arrayCell("2:favori"), + arrayCell("3:curseur"), + arrayCell("4:relatif"), + ]), + SizedBox(height: 15), + Row(children: [ + arrayCell("5:embellir"), + arrayCell("6:cultiver"), + arrayCell("7:bureau"), + arrayCell("8:ossature"), + ]), + SizedBox(height: 15), + Row(children: [ + arrayCell("9:labial"), + arrayCell("10:science"), + arrayCell("11:theĢorie"), + arrayCell("12:Monnaie"), + ]), + ]))); +} + +Widget arrayCell(dataWord) { + return Container( + width: 80, + child: Column( + children: [ + ImageFiltered( + imageFilter: ImageFilter.blur(sigmaX: 2.5, sigmaY: 2.5), + child: Text(dataWord.split(':')[0], + style: TextStyle(fontSize: 12, color: Colors.black)), + ), + SizedBox(height: 2), + ImageFiltered( + imageFilter: ImageFilter.blur(sigmaX: 3, sigmaY: 3), + child: Text(dataWord.split(':')[1], + style: TextStyle(fontSize: 16, color: Colors.black)), + ) + ], + )); +} diff --git a/lib/screens/onBoarding/9_stepNine.dart b/lib/screens/onBoarding/9_stepNine.dart index 81a271e..c7aa4dc 100644 --- a/lib/screens/onBoarding/9_stepNine.dart +++ b/lib/screens/onBoarding/9_stepNine.dart @@ -71,7 +71,7 @@ class OnboardingStepNine extends StatelessWidget { fontWeight: FontWeight.w500), ), ), - SizedBox(height: 50), + SizedBox(height: 64), // TextField( // enabled: false, // controller: _generateWalletProvider.mnemonicController,