+ // ${top_imgOrVideo}
+ //
+ //
${article['title']}
+ //
+ //
${article['author']}
+ //
${time_08_Formatter(article['created_at'])}
+ //
+ // ${newText}
+ //
+ //
+
+ //
+ // ''';
+
+ // print("$html");
+ // // articleController.readAdd(article['id']);
+ // String? uid = userInfoController.model.user?.uid;
+ // print("${userInfoController.model.user}");
+ // // uid = "sss";
+ // // if (uid != null) {
+ // // articleController.findIsLike(uid, article['id']).then((d) {
+ // // isLike.value = d;
+ // // });
+ // // }
+
+ // return LayoutBuilder(
+ // builder: (context, boxConstraints) => GestureDetector(
+ // onTap: () => FocusScope.of(context).unfocus(),
+ // child: Scaffold(
+ // appBar: AppBar(
+ // backgroundColor: AppColors.bg_color,
+ // automaticallyImplyLeading: false,
+ // iconTheme: IconThemeData(color: Colors.white),
+ // titleSpacing: 0,
+ // leading: returnIconButtom,
+ // ),
+ // body: SafeArea(
+ // top: true,
+ // child: Container(
+ // width: MediaQuery.sizeOf(context).width,
+ // height: MediaQuery.sizeOf(context).height,
+ // decoration: BoxDecoration(
+ // color: Colors.white,
+ // // color: AppColors.bg_color,
+ // // image: DecorationImage(
+ // // image: AssetImage("assets/images/background.png$test"),
+ // // fit: BoxFit.cover,
+ // // ),
+ // ),
+ // child: Column(
+ // children: [
+ // Expanded(
+ // child: Container(
+ // // child: WebViewWidget(
+ // // controller: WebViewController()
+ // // ..setJavaScriptMode(JavaScriptMode.unrestricted)
+ // // ..loadHtmlString(html),
+ // // ),
+ // child: InAppWebView(
+ // initialData:
+ // InAppWebViewInitialData(data: html, encoding: ""),
+ // ),
+ // ),
+ // ),
+ // ],
+ // ),
+ // ),
+ // ),
+ // ),
+ // ),
+ // );
+ // }
+
Widget build(BuildContext context) {
- String top_imgOrVideo = "";
- if (article['imgOrVideo'] == 0) {
- top_imgOrVideo =
- '''