commit avant merge
continuous-integration/drone/push Build is passing Details

messagerie_lucas_test
Lucas DELANIER 2 years ago
parent e332d84deb
commit d265a8e49f

@ -405,6 +405,8 @@ class _SplashState extends State<Splash> {
} }
} }
Object Notify(int index, context, {bool isError = true}){ Object Notify(int index, context, {bool isError = true}){
double height = MediaQuery.of(context).size.height;
double width = MediaQuery.of(context).size.width;
String message; String message;
if(isError == true){ if(isError == true){
switch(index){ switch(index){
@ -443,7 +445,7 @@ Object Notify(int index, context, {bool isError = true}){
children: [ children: [
Container( Container(
padding: EdgeInsets.all(16), padding: EdgeInsets.fromLTRB(20,height/110,20,0),
height: 90, height: 90,
child: Row( child: Row(
children: [ children: [
@ -454,7 +456,7 @@ Object Notify(int index, context, {bool isError = true}){
Expanded(child: Column( Expanded(child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text("Oh oh !", style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),), Text("Ho ho !", style: TextStyle( fontWeight: FontWeight.bold),),
Text(message,style: TextStyle( Text(message,style: TextStyle(
), ),
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
@ -515,7 +517,7 @@ Object Notify(int index, context, {bool isError = true}){
children: [ children: [
Container( Container(
padding: EdgeInsets.all(16), padding: EdgeInsets.fromLTRB(20,height/110,20,0),
height: 90, height: 90,
child: Row( child: Row(
children: [ children: [

@ -55,6 +55,8 @@ class _TopsWidgetState extends State<TopsWidget> {
class TopWidget extends StatelessWidget{ class TopWidget extends StatelessWidget{
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
double height = MediaQuery.of(context).size.height;
double width = MediaQuery.of(context).size.width;
return Container( return Container(
padding: EdgeInsets.fromLTRB(30, 0, 30, 0), padding: EdgeInsets.fromLTRB(30, 0, 30, 0),
width: double.infinity, width: double.infinity,
@ -102,10 +104,12 @@ class TopWidget extends StatelessWidget{
placeholder: "assets/images/loadingPlaceholder.gif", image: 'https://images.genius.com/ef4849be3da5fdb22ea9e656679be3a3.600x600x1.jpg'), placeholder: "assets/images/loadingPlaceholder.gif", image: 'https://images.genius.com/ef4849be3da5fdb22ea9e656679be3a3.600x600x1.jpg'),
), ),
), ),
Stack( Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.end,
children: [ children: [
Container( Container(
margin: EdgeInsets.fromLTRB(12, 5, 80, 60), margin: EdgeInsets.fromLTRB(12, 5, 0, 0),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -115,30 +119,21 @@ class TopWidget extends StatelessWidget{
], ],
), ),
), ),
Positioned( GradientText(
bottom: 0, '7,2%',
right: 0, style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 40),
child: Row( gradient: LinearGradient(colors: [
children: [ Colors.orange,
GradientText( Colors.red,
'7,2%', Colors.purple,
style: const TextStyle(fontSize: 60, fontWeight: FontWeight.bold), ]),
gradient: LinearGradient(colors: [ ),
Colors.orange, ],
Colors.red, ),
Colors.purple,
]),
),
],
),
),
], ],
), ),
], ],
), ),
],
),
); );
} }
} }

Loading…
Cancel
Save