copy right & cloud logo are hard coded now.

development
Sikander Saleem 5 years ago
parent 8df6237d02
commit d7978a040b

@ -39,24 +39,24 @@ class _CommonAppbarState extends State<CommonAppbar> {
getPrefs();
getNavigation();
getQuickLinks();
getCopyRight();
//getCopyRight();
}
void getCopyRight() async {
if (AppState().getContentInfoModel == null) {
try {
var model = await TangheemUserApiClient().getContentInfo(3);
var contentList = model?.data ?? [];
if (contentList.length > 0) {
_copyRight = contentList.first;
AppState().setContentInfoModel(_copyRight);
}
} catch (ex) {}
} else {
_copyRight = AppState().getContentInfoModel;
}
setState(() {});
}
// void getCopyRight() async {
// if (AppState().getContentInfoModel == null) {
// try {
// var model = await TangheemUserApiClient().getContentInfo(3);
// var contentList = model?.data ?? [];
// if (contentList.length > 0) {
// _copyRight = contentList.first;
// AppState().setContentInfoModel(_copyRight);
// }
// } catch (ex) {}
// } else {
// _copyRight = AppState().getContentInfoModel;
// }
// setState(() {});
// }
void getNavigation() async {
if (AppState().getNavigationModel?.data == null) {
@ -272,13 +272,13 @@ class _CommonAppbarState extends State<CommonAppbar> {
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
_copyRight.content ?? "",
"Powered by Cloud Solutions",
maxLines: 1,
textAlign: TextAlign.right,
style: TextStyle(fontSize: 14),
),
SizedBox(width: 8),
Image.network(_copyRight.exposeFilePath, width: 30, height: 30)
SvgPicture.asset("assets/logos/cloud_logo.svg", width: 30, height: 30)
],
),
)

Loading…
Cancel
Save