import 'package:flutter/material.dart';
class HomeScreen extends StatelessWidget {
const HomeScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Container(
color: Colors.white,
height: double.infinity,
width: double.infinity,
child: SingleChildScrollView(
physics: const AlwaysScrollableScrollPhysics(),
padding: const EdgeInsets.symmetric(
horizontal: 30,
vertical: 30,
),
child: Column(
children: [
ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: const Color.fromARGB(255, 228, 228, 228),
elevation: 5,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(25),
),
),
onPressed: (() {}),
child: const Text(
'Search Categories',
style: TextStyle(
color: Colors.grey,
fontSize: 16,
),
),
),
ListView.builder(
shrinkWrap: true,
itemCount: 5,
physics: const AlwaysScrollableScrollPhysics(),
itemBuilder: (context, index) {
return Text("Text");
},
)
],
),
),
),
),
);
}
}