migração flutter 2.2.1
This commit is contained in:
@@ -15,17 +15,17 @@ class NotificacaoDetail extends StatelessWidget {
|
||||
//
|
||||
//title: Obx(() => Text(c.notificacaoDetail.value.result.titulo ?? 'Notificação')),
|
||||
),
|
||||
body: Obx(() => c.loadingDetail.value ? Center(child: CircularProgressIndicator(),) : c.notificacaoDetail.value.errorCode != 0 ? Center(child: Text(c.notificacaoDetail.value.errorMessage),) : ListView(
|
||||
body: Obx(() => c.loadingDetail.value ? Center(child: CircularProgressIndicator(),) : c.notificacaoDetail.value.errorCode != 0 ? Center(child: Text(c.notificacaoDetail.value.errorMessage!),) : ListView(
|
||||
children: <Widget>[
|
||||
Visibility(
|
||||
visible: GetUtils.isNullOrBlank(c.notificacaoDetail.value.result.imageUrl) == false,
|
||||
visible: GetUtils.isNullOrBlank(c.notificacaoDetail.value.result!.imageUrl) == false,
|
||||
child: Container(
|
||||
color: Colors.black38,
|
||||
height: 250,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(70.0),
|
||||
child: Image.network(
|
||||
c.notificacaoDetail.value.result.imageUrl ?? '',
|
||||
c.notificacaoDetail.value.result!.imageUrl ?? '',
|
||||
fit: BoxFit.contain,
|
||||
),
|
||||
),
|
||||
@@ -37,14 +37,17 @@ class NotificacaoDetail extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
Text(
|
||||
c.notificacaoDetail.value.result.titulo,
|
||||
c.notificacaoDetail.value.result!.titulo!,
|
||||
style: TextStyle(fontSize: 30.0,),
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
Html(
|
||||
data: c.notificacaoDetail.value.result.conteudo,
|
||||
onLinkTap: (url){
|
||||
launch(url);
|
||||
data: c.notificacaoDetail.value.result!.conteudo,
|
||||
// onLinkTap: (url){
|
||||
// launch(url);
|
||||
// },
|
||||
onLinkTap: (url,ctx,mp,element){
|
||||
launch(url!);
|
||||
},
|
||||
// style: Theme.of(context).textTheme.bodyText2.copyWith(
|
||||
// color: Colors.black54,
|
||||
|
||||
Reference in New Issue
Block a user