mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-12 07:28:55 +03:30
fix package detail bug
This commit is contained in:
@@ -17,6 +17,7 @@ class _PackageDetailScreenState extends State<PackageDetailScreen> {
|
||||
bool isInit = true;
|
||||
bool isEmpty = false;
|
||||
PackageDetailObject? datas;
|
||||
|
||||
@override
|
||||
void didChangeDependencies() async {
|
||||
if (isInit) {
|
||||
@@ -27,11 +28,12 @@ class _PackageDetailScreenState extends State<PackageDetailScreen> {
|
||||
(result) {
|
||||
setState(
|
||||
() {
|
||||
if (result.id == 'null') {
|
||||
isEmpty = true;
|
||||
}
|
||||
datas = result;
|
||||
isInit = false;
|
||||
if (result.id == 'null')
|
||||
isEmpty = true;
|
||||
else
|
||||
isEmpty = false;
|
||||
},
|
||||
);
|
||||
},
|
||||
@@ -49,7 +51,12 @@ class _PackageDetailScreenState extends State<PackageDetailScreen> {
|
||||
child: Scaffold(
|
||||
appBar: AppBar(
|
||||
titleSpacing: -10,
|
||||
title: Text('Packages', style: TextStyle(color: Colors.white,),),
|
||||
title: Text(
|
||||
'Packages',
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
backgroundColor: Colors.black,
|
||||
leading: IconButton(
|
||||
icon: Icon(
|
||||
|
||||
Reference in New Issue
Block a user