carga
This commit is contained in:
@@ -29,6 +29,21 @@ class _ReputationProScreenState extends State<ReputationProScreen> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Widget _scoreList(List<ScoreDetailModel> list) {
|
||||||
|
if (list.isEmpty) {
|
||||||
|
return const Padding(
|
||||||
|
padding: EdgeInsets.symmetric(vertical: 40),
|
||||||
|
child: Center(
|
||||||
|
child: Text('Sin calificaciones'),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
return Column(
|
||||||
|
children: list.map((e) => _scoreItem(e)).toList(),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
@@ -38,18 +53,11 @@ class _ReputationProScreenState extends State<ReputationProScreen> {
|
|||||||
},
|
},
|
||||||
label: 'Reputación'),
|
label: 'Reputación'),
|
||||||
body: SingleChildScrollView(
|
body: SingleChildScrollView(
|
||||||
child: Column(
|
child: _scoreList(scoresModel?.details ?? []),
|
||||||
children: [
|
),
|
||||||
..._scoresList(scoresModel?.details ?? []),
|
|
||||||
],
|
|
||||||
)),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Widget> _scoresList(List<ScoreDetailModel> list) {
|
|
||||||
return list.map((e) => _scoreItem(e)).toList();
|
|
||||||
}
|
|
||||||
|
|
||||||
Widget _scoreItem(ScoreDetailModel scoreDetails) {
|
Widget _scoreItem(ScoreDetailModel scoreDetails) {
|
||||||
return ListTile(
|
return ListTile(
|
||||||
onTap: () {},
|
onTap: () {},
|
||||||
|
|||||||
@@ -29,6 +29,21 @@ class _ReputationScreenState extends State<ReputationScreen> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Widget _scoreList(List<ScoreDetailModel> list) {
|
||||||
|
if (list.isEmpty) {
|
||||||
|
return const Padding(
|
||||||
|
padding: EdgeInsets.symmetric(vertical: 40),
|
||||||
|
child: Center(
|
||||||
|
child: Text('Sin calificaciones'),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
return Column(
|
||||||
|
children: list.map((e) => _scoreItem(e)).toList(),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
@@ -38,18 +53,11 @@ class _ReputationScreenState extends State<ReputationScreen> {
|
|||||||
},
|
},
|
||||||
label: 'Reputación'),
|
label: 'Reputación'),
|
||||||
body: SingleChildScrollView(
|
body: SingleChildScrollView(
|
||||||
child: Column(
|
child: _scoreList(scoresModel?.details ?? []),
|
||||||
children: [
|
),
|
||||||
..._scoresList(scoresModel?.details ?? []),
|
|
||||||
],
|
|
||||||
)),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Widget> _scoresList(List<ScoreDetailModel> list) {
|
|
||||||
return list.map((e) => _scoreItem(e)).toList();
|
|
||||||
}
|
|
||||||
|
|
||||||
Widget _scoreItem(ScoreDetailModel scoreDetails) {
|
Widget _scoreItem(ScoreDetailModel scoreDetails) {
|
||||||
return ListTile(
|
return ListTile(
|
||||||
onTap: () {},
|
onTap: () {},
|
||||||
|
|||||||
@@ -19,9 +19,7 @@ class _WebViewScreenState extends State<WebViewScreen> {
|
|||||||
..setBackgroundColor(const Color(0x00000000))
|
..setBackgroundColor(const Color(0x00000000))
|
||||||
..setNavigationDelegate(
|
..setNavigationDelegate(
|
||||||
NavigationDelegate(
|
NavigationDelegate(
|
||||||
onProgress: (int progress) {
|
onProgress: (int progress) {},
|
||||||
// Update loading bar.
|
|
||||||
},
|
|
||||||
onPageStarted: (String url) {},
|
onPageStarted: (String url) {},
|
||||||
onPageFinished: (String url) {},
|
onPageFinished: (String url) {},
|
||||||
onWebResourceError: (WebResourceError error) {},
|
onWebResourceError: (WebResourceError error) {},
|
||||||
@@ -41,7 +39,16 @@ class _WebViewScreenState extends State<WebViewScreen> {
|
|||||||
},
|
},
|
||||||
label: widget.label,
|
label: widget.label,
|
||||||
),
|
),
|
||||||
body: WebViewWidget(controller: controller),
|
body: Stack(
|
||||||
|
children: [
|
||||||
|
const Center(child: CircularProgressIndicator()),
|
||||||
|
WebViewWidget(controller: controller),
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
// isLoading
|
||||||
|
// ? const Center(child: CircularProgressIndicator())
|
||||||
|
// : WebViewWidget(controller: controller),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user