class H extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
child: stack(context, 'assets/sbg.png', 80, 111, 58, 215, 'assets/logo.png', 'title', 'subtitle'),
);
}
}
//////////
Widget stack(BuildContext context,image, left,top,height,width,logo,title,subtitle){
return Stack(
clipBehavior: Clip.none,
children: [
Positioned(
left: createSize( left, context),
top: createSize(top, context),
height: createSize(height, context),
width: createSize(width, context),
child: Column(children: [
Image.asset(logo),
Text(title,style: TextStyle(),),Text(subtitle),
],),
),
Container(
height: createSize(447, context),
width: createSize(375, context),
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(image), fit: BoxFit.cover),
),
),
],
);
}
I have this issue on my flutter application. i am always getting an error like this "type 'double' is not a subtype of type 'int' in type cast" , what error i have made here? The following _TypeError was thrown building SignIn(dirty): type 'int' is not a subtype of type 'double'.