TE-Flutter / assisteva

0 stars 1 forks source link

1st | Home Screen | Navigation Bar #5

Open haythamhamed opened 1 year ago

haythamhamed commented 1 year ago

image

khlebobul commented 1 year ago

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home : DefaultTabController(
        length : 4,
        child : Scaffold(
          appBar : AppBar(title : Text("Home Screen | Navigation Bar #5"),
            bottom : TabBar(
              tabs : [
                Tab(child : Text("Home")),
                Tab(child : Text("My courses")),
                Tab(child : Text("Search")),
                Tab(child : Text("Notification"))
] )
          ),
          body : TabBarView(
            children : [
              Center(child : Text("Home")),
              Center(child : Text("My courses")),
              Center(child : Text("Search")),
              Center(child : Text("Notification"))
] )
)
        ) );
} }
khlebobul commented 1 year ago

https://user-images.githubusercontent.com/77191581/203407361-6edfb851-cf6f-43c2-ac13-6411b829ae1d.mov