Untitled
unknown
plain_text
2 years ago
3.4 kB
9
Indexable
Scaffold(
backgroundColor: const Color(0xFF3E2B67),
body: SafeArea(
child: Padding(
padding: const EdgeInsets.only(left: 16, right: 16),
child: Column(
children: [
SizedBox(
width: MediaQuery.of(context).size.width,
height: 160,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
const Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"Assalamualaikum, \nSalwa!",
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.white,
),
),
Text(
"15:30",
style: TextStyle(
fontSize: 40,
fontWeight: FontWeight.bold,
color: Colors.white,
),
),
Text(
"15 menit lagi menuju shalat ashar",
style: TextStyle(
fontSize: 11,
color: Colors.white,
),
),
],
),
Container(
width: 160,
height: 150,
decoration: const BoxDecoration(
image: DecorationImage(
image: AssetImage("assets/image1.png"),
fit: BoxFit.fill,
),
),
),
],
),
),
Container(
height: 50,
width: MediaQuery.of(context).size.width,
// Add padding around the search bar
padding: const EdgeInsets.symmetric(horizontal: 8.0),
// Use a Material design search bar
child: TextField(
controller: _searchController,
decoration: InputDecoration(
filled: true,
fillColor: Colors.white,
hintText: 'Search...',
// Add a clear button to the search bar
suffixIcon: IconButton(
icon: const Icon(Icons.clear),
onPressed: () => _searchController.clear(),
),
// Add a search icon or button to the search bar
prefixIcon: IconButton(
icon: const Icon(Icons.search),
onPressed: () {
// Perform the search here
},
),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(10.0),
),
),
),
),
],
),
),
),
);Editor is loading...