Untitled

 avatar
unknown
plain_text
2 years ago
1.8 kB
3
Indexable
import 'package:flutter/material.dart';
import 'package:flip_box_bar_plus/flip_box_bar_plus.dart';

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        color: Colors.white,
        height: double.infinity,
        width: double.infinity,
        child: Container(
          padding: const EdgeInsets.symmetric(vertical: 50),
          width: double.infinity,
          child: SingleChildScrollView(
            physics: const AlwaysScrollableScrollPhysics(),
            padding: const EdgeInsets.symmetric(
              horizontal: 30,
              vertical: 30,
            ),
            child: Column(
              children: [
                ElevatedButton(
                  style: ElevatedButton.styleFrom(
                      backgroundColor: Color.fromARGB(255, 228, 228, 228),
                      elevation: 5,
                      shape: RoundedRectangleBorder(
                        borderRadius: BorderRadius.circular(25),
                      ),
                      padding: const EdgeInsets.all(18)),
                  onPressed: (() {}),
                  child: Text(
                    'Search Categories',
                    style: TextStyle(color: Colors.grey, fontSize: 20),
                  ),
                ),
                ListView.builder(
                  shrinkWrap: true,
                  itemCount: 5,
                  itemBuilder: (context, index) {
                    return Container(
                      color: Colors.black,
                    );
                  },
                )
              ],
            ),
          ),
        ),
      ),
    );
  }
}
Editor is loading...