diff --git a/Sources/dafl_project_flutter/lib/main.dart b/Sources/dafl_project_flutter/lib/main.dart index 637078d..7ecbd90 100644 --- a/Sources/dafl_project_flutter/lib/main.dart +++ b/Sources/dafl_project_flutter/lib/main.dart @@ -405,6 +405,8 @@ class _SplashState extends State { } } Object Notify(int index, context, {bool isError = true}){ + double height = MediaQuery.of(context).size.height; + double width = MediaQuery.of(context).size.width; String message; if(isError == true){ switch(index){ @@ -443,7 +445,7 @@ Object Notify(int index, context, {bool isError = true}){ children: [ Container( - padding: EdgeInsets.all(16), + padding: EdgeInsets.fromLTRB(20,height/110,20,0), height: 90, child: Row( children: [ @@ -454,7 +456,7 @@ Object Notify(int index, context, {bool isError = true}){ Expanded(child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text("Oh oh !", style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),), + Text("Ho ho !", style: TextStyle( fontWeight: FontWeight.bold),), Text(message,style: TextStyle( ), overflow: TextOverflow.ellipsis, @@ -515,7 +517,7 @@ Object Notify(int index, context, {bool isError = true}){ children: [ Container( - padding: EdgeInsets.all(16), + padding: EdgeInsets.fromLTRB(20,height/110,20,0), height: 90, child: Row( children: [ diff --git a/Sources/dafl_project_flutter/lib/views/pages/main/w_top.dart b/Sources/dafl_project_flutter/lib/views/pages/main/w_top.dart index 26c28bf..d0771b1 100644 --- a/Sources/dafl_project_flutter/lib/views/pages/main/w_top.dart +++ b/Sources/dafl_project_flutter/lib/views/pages/main/w_top.dart @@ -55,6 +55,8 @@ class _TopsWidgetState extends State { class TopWidget extends StatelessWidget{ @override Widget build(BuildContext context) { + double height = MediaQuery.of(context).size.height; + double width = MediaQuery.of(context).size.width; return Container( padding: EdgeInsets.fromLTRB(30, 0, 30, 0), width: double.infinity, @@ -102,10 +104,12 @@ class TopWidget extends StatelessWidget{ placeholder: "assets/images/loadingPlaceholder.gif", image: 'https://images.genius.com/ef4849be3da5fdb22ea9e656679be3a3.600x600x1.jpg'), ), ), - Stack( + Column( + mainAxisAlignment: MainAxisAlignment.spaceAround, + crossAxisAlignment: CrossAxisAlignment.end, children: [ Container( - margin: EdgeInsets.fromLTRB(12, 5, 80, 60), + margin: EdgeInsets.fromLTRB(12, 5, 0, 0), child: Column( mainAxisAlignment: MainAxisAlignment.end, crossAxisAlignment: CrossAxisAlignment.start, @@ -115,30 +119,21 @@ class TopWidget extends StatelessWidget{ ], ), ), - Positioned( - bottom: 0, - right: 0, - child: Row( - children: [ - GradientText( - '7,2%', - style: const TextStyle(fontSize: 60, fontWeight: FontWeight.bold), - gradient: LinearGradient(colors: [ - Colors.orange, - Colors.red, - Colors.purple, - ]), - ), - ], - ), - ), + GradientText( + '7,2%', + style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 40), + gradient: LinearGradient(colors: [ + Colors.orange, + Colors.red, + Colors.purple, + ]), + ), + ], + ), ], ), - ], ), - ], - ), ); } }