Tuesday, 25 June 2024

tabs in body flutter

import 'package:flutter/material.dart';
import 'package:multistoreapp/widgets/fake_search.dart';

class CategoryScreen extends StatefulWidget {
  const CategoryScreen({super.key});

  @override
  State<CategoryScreen> createState() => _CategoryScreenState();
}

class _CategoryScreenState extends State<CategoryScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        elevation: 0,
        backgroundColor: Colors.white,
        title: const FakeSearch(),
      ),
      body: Stack(
        children: [
          Positioned(

            bottom: 0,
            left: 0,
            child: Container(height: 800, width: 100, color: Colors.red),
          ),
          Positioned(
            bottom: 0,
            right: 0,
            child: Container(height: 800, width: 300, color: Colors.blue),
          )
        ],
      ),
    );
  }
}



No comments:

Post a Comment

7 Common mistakes in Dot Net — You can avoid

  There are many common mistakes made during .NET (ASP.NET, .NET Core) development, which affect performance, security, and code… Code Crack...