kids challenge ui





 import 'package:flutter/material.dart';

import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:google_fonts/google_fonts.dart';

class KidsChallengeScreen extends StatelessWidget {
const KidsChallengeScreen({super.key});

@override
Widget build(BuildContext context) {
return ScreenUtilInit(
designSize: const Size(375, 812),
builder: (context, child) => Scaffold(
backgroundColor: const Color(0xFFE3F2FD),
body: SafeArea(
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 20.w),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 16.h),

// Greeting Row
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'Hey,\nSuper Star!',
style: GoogleFonts.poppins(
fontSize: 22.sp,
fontWeight: FontWeight.bold,
color: Colors.deepPurple,
),
),
CircleAvatar(
radius: 20.r,
backgroundColor: Colors.yellow.shade100,
child: Icon(Icons.star_border, color: Colors.deepPurple),
)
],
),
SizedBox(height: 20.h),

// Banner Challenge (Text Left, Image Right)
Container(
width: double.infinity,
height: 120.h,
decoration: BoxDecoration(
color: const Color(0xFF9575CD), // A fun purple tone
borderRadius: BorderRadius.circular(16.r),
),
padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 12.h),
child: Row(
children: [
// Left side text
Expanded(
flex: 2,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'🌟 Daily Fun Challenge!',
style: GoogleFonts.poppins(
fontSize: 14.sp,
fontWeight: FontWeight.bold,
color: Colors.white,
),
),
SizedBox(height: 6.h),
Text(
'Let\'s play and learn today.',
style: GoogleFonts.poppins(
fontSize: 12.sp,
color: Colors.white70,
),
),
const Spacer(),
Container(
padding: EdgeInsets.symmetric(horizontal: 12.w, vertical: 6.h),
decoration: BoxDecoration(
color: Colors.orange,
borderRadius: BorderRadius.circular(8.r),
),
child: Text(
'Let\'s Go!',
style: GoogleFonts.poppins(
fontSize: 12.sp,
color: Colors.white,
),
),
),
],
),
),

SizedBox(width: 8.w),

// Right side image
Expanded(
flex: 1,
child: Image.asset(
'assets/kids_c.png', // Replace with your image path
fit: BoxFit.contain,
height: 100.h,
),
),
],
),
),

SizedBox(height: 24.h),

// Main Activity Cards
Row(
children: [
// Left large card
Expanded(
child: Container(
height: 110.h,
decoration: BoxDecoration(
color: const Color(0xFFD1F5C3),
borderRadius: BorderRadius.circular(16.r),
),
padding: EdgeInsets.all(12.w),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text("🖌", style: TextStyle(fontSize: 26.sp)),
const Spacer(),
Text(
'Drawing\nChallenge',
style: GoogleFonts.poppins(
fontSize: 13.sp,
fontWeight: FontWeight.w600,
),
),
],
),
),
),
SizedBox(width: 12.w),

// Right stacked cards
Expanded(
child: Column(
children: [
Container(
height: 52.h,
width: double.infinity,
decoration: BoxDecoration(
color: const Color(0xFFFFD1DC),
borderRadius: BorderRadius.circular(16.r),
),
padding: EdgeInsets.all(12.w),
child: Row(
children: [
Text("❓", style: TextStyle(fontSize: 20.sp)),
SizedBox(width: 8.w),
Text(
'What\'s This?',
style: GoogleFonts.poppins(fontSize: 12.sp),
)
],
),
),
SizedBox(height: 6.h),
Container(
height: 52.h,
width: double.infinity,
decoration: BoxDecoration(
color: const Color(0xFFC8E6C9),
borderRadius: BorderRadius.circular(16.r),
),
padding: EdgeInsets.all(12.w),
child: Row(
children: [
Text("➗", style: TextStyle(fontSize: 20.sp)),
SizedBox(width: 8.w),
Text(
'Math Round',
style: GoogleFonts.poppins(fontSize: 12.sp),
)
],
),
),
],
),
),
],
),
SizedBox(height: 12.h),

// Paint It Card
Container(
width: double.infinity,
height: 60.h,
margin: EdgeInsets.only(top: 12.h),
decoration: BoxDecoration(
color: const Color(0xFFB2EBF2),
borderRadius: BorderRadius.circular(16.r),
),
padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 12.h),
child: Row(
children: [
Text("🎨", style: TextStyle(fontSize: 20.sp)),
SizedBox(width: 10.w),
Text(
'Paint It!',
style: GoogleFonts.poppins(
fontSize: 14.sp,
fontWeight: FontWeight.w600,
),
),
const Spacer(),
Icon(Icons.arrow_forward_ios, size: 14.sp)
],
),
),
],
),
),
),
),
);
}
}

Comments

Popular posts from this blog

Learning basics for Backend Developer | build setup

Bponi November 26 2025

make this project