Fixed AppBar Joblist overlap
parent
979c0d0f0d
commit
094fa115c7
|
@ -139,25 +139,6 @@ class _JobScreenState extends State<JobScreen> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 80),
|
|
||||||
ElevatedButton(
|
|
||||||
onPressed: () {
|
|
||||||
_auth.signOut();
|
|
||||||
Navigator.canPop(context)
|
|
||||||
? Navigator.pop(context)
|
|
||||||
: null;
|
|
||||||
Navigator.pushReplacement(
|
|
||||||
context,
|
|
||||||
MaterialPageRoute(builder: (_) => UserState()),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
child: const Text("Log Out"),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
//TODO Jobs werden von Appbar überdeckt
|
|
||||||
StreamBuilder<QuerySnapshot<Map<String, dynamic>>>(
|
StreamBuilder<QuerySnapshot<Map<String, dynamic>>>(
|
||||||
stream: FirebaseFirestore.instance.collection("jobs").where("jobCategory", isEqualTo: jobCategoryFilter).where("recruitment", isEqualTo: true).orderBy("createdAt", descending: false).snapshots(),
|
stream: FirebaseFirestore.instance.collection("jobs").where("jobCategory", isEqualTo: jobCategoryFilter).where("recruitment", isEqualTo: true).orderBy("createdAt", descending: false).snapshots(),
|
||||||
builder: (context, AsyncSnapshot snapshot){
|
builder: (context, AsyncSnapshot snapshot){
|
||||||
|
@ -166,6 +147,7 @@ class _JobScreenState extends State<JobScreen> {
|
||||||
} else if (snapshot.connectionState == ConnectionState.active){
|
} else if (snapshot.connectionState == ConnectionState.active){
|
||||||
if(snapshot.data?.docs.isNotEmpty == true){
|
if(snapshot.data?.docs.isNotEmpty == true){
|
||||||
return ListView.builder(
|
return ListView.builder(
|
||||||
|
shrinkWrap: true,
|
||||||
itemCount: snapshot.data?.docs.length,
|
itemCount: snapshot.data?.docs.length,
|
||||||
itemBuilder: (BuildContext context, int index){
|
itemBuilder: (BuildContext context, int index){
|
||||||
return JobWidget(
|
return JobWidget(
|
||||||
|
@ -198,6 +180,24 @@ class _JobScreenState extends State<JobScreen> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
const SizedBox(height: 80),
|
||||||
|
ElevatedButton(
|
||||||
|
onPressed: () {
|
||||||
|
_auth.signOut();
|
||||||
|
Navigator.canPop(context)
|
||||||
|
? Navigator.pop(context)
|
||||||
|
: null;
|
||||||
|
Navigator.pushReplacement(
|
||||||
|
context,
|
||||||
|
MaterialPageRoute(builder: (_) => UserState()),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
child: const Text("Log Out"),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue