Added custom Appbar for each page
This commit is contained in:
parent
cc47f9bee7
commit
3e7dd1b0c7
@ -68,8 +68,10 @@ class _AppState extends State<App> {
|
|||||||
context,
|
context,
|
||||||
controller: tabController,
|
controller: tabController,
|
||||||
navBarStyle: NavBarStyle.style3,
|
navBarStyle: NavBarStyle.style3,
|
||||||
backgroundColor: Colors.white70,
|
decoration: const NavBarDecoration(
|
||||||
screenTransitionAnimation: ScreenTransitionAnimation(animateTabTransition: true, curve: Curves.ease, duration: Duration(milliseconds: 200)),
|
border: Border.symmetric(vertical: BorderSide.none, horizontal: BorderSide(color: Colors.grey, width: 2))
|
||||||
|
),
|
||||||
|
screenTransitionAnimation: const ScreenTransitionAnimation(animateTabTransition: true, curve: Curves.ease, duration: Duration(milliseconds: 200)),
|
||||||
screens: [
|
screens: [
|
||||||
const Timetable(),
|
const Timetable(),
|
||||||
const ChatList(),
|
const ChatList(),
|
||||||
|
@ -42,7 +42,21 @@ class _FilesState extends State<Files> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Consumer<FilesProps>(
|
return Scaffold(
|
||||||
|
appBar: AppBar(
|
||||||
|
title: const Text("Dateien"),
|
||||||
|
actions: [
|
||||||
|
IconButton(
|
||||||
|
icon: const Icon(Icons.search),
|
||||||
|
onPressed: () => {},
|
||||||
|
),
|
||||||
|
IconButton(
|
||||||
|
icon: const Icon(Icons.sort),
|
||||||
|
onPressed: () => {},
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
body: Consumer<FilesProps>(
|
||||||
builder: (context, value, child) {
|
builder: (context, value, child) {
|
||||||
if(value.primaryLoading()) return const Center(child: CircularProgressIndicator());
|
if(value.primaryLoading()) return const Center(child: CircularProgressIndicator());
|
||||||
|
|
||||||
@ -61,6 +75,7 @@ class _FilesState extends State<Files> {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,17 @@ class _ChatListState extends State<ChatList> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
|
||||||
return Consumer<ChatListProps>(
|
return Scaffold(
|
||||||
|
appBar: AppBar(
|
||||||
|
title: const Text("Talk"),
|
||||||
|
actions: [
|
||||||
|
IconButton(
|
||||||
|
icon: const Icon(Icons.search),
|
||||||
|
onPressed: () => {},
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
body: Consumer<ChatListProps>(
|
||||||
builder: (context, data, child) {
|
builder: (context, data, child) {
|
||||||
|
|
||||||
if(data.primaryLoading()) {
|
if(data.primaryLoading()) {
|
||||||
@ -101,6 +111,7 @@ class _ChatListState extends State<ChatList> {
|
|||||||
child: ListView(children: chats),
|
child: ListView(children: chats),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -26,7 +26,11 @@ class _TimetableState extends State<Timetable> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Consumer<TimetableProps>(
|
return Scaffold(
|
||||||
|
appBar: AppBar(
|
||||||
|
title: const Text("Vertretungsplan"),
|
||||||
|
),
|
||||||
|
body: Consumer<TimetableProps>(
|
||||||
builder: (context, value, child) {
|
builder: (context, value, child) {
|
||||||
if(value.primaryLoading()) {
|
if(value.primaryLoading()) {
|
||||||
return const Center(child: CircularProgressIndicator());
|
return const Center(child: CircularProgressIndicator());
|
||||||
@ -100,6 +104,7 @@ class _TimetableState extends State<Timetable> {
|
|||||||
],
|
],
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user