mirrored_repositories/AppSecretaria/lib
import 'package:app_secretaria_flutter/View/quem_quem/quem.dart';
import 'package:app_secretaria_flutter/View/sic/sic.dart';
import 'package:app_secretaria_flutter/View/telas_transparencia/institucional/base_juridica.dart';
import 'package:app_secretaria_flutter/View/telas_transparencia/institucional/competencias.dart';
import 'package:app_secretaria_flutter/View/telas_transparencia/institucional/estrutura.dart';
import 'package:app_secretaria_flutter/View/telas_transparencia/mais_transparencia/informacoes_classificadas.dart';
import 'package:app_secretaria_flutter/View/telas_transparencia/servico_informacao_cidadao/autoridade_monitoramento.dart';
import 'package:app_secretaria_flutter/View/telas_transparencia/servico_informacao_cidadao/canais_atendimento.dart';
import 'package:app_secretaria_flutter/View/telas_transparencia/servico_informacao_cidadao/normas_regulamentacao.dart';
import 'package:app_secretaria_flutter/View/telas_transparencia/servico_informacao_cidadao/o_que_e_pedido_info.dart';
import 'package:app_secretaria_flutter/View/telas_transparencia/servico_informacao_cidadao/passo_passo.dart';
import 'package:app_secretaria_flutter/View/telas_transparencia/servico_informacao_cidadao/requisitos_documentos.dart';
import 'package:app_secretaria_flutter/View/telas_transparencia/servico_informacao_cidadao/respons%C3%A1vel_sic.dart';
import 'package:app_secretaria_flutter/View/telas_transparencia/servico_informacao_cidadao/sic.dart';
import 'package:app_secretaria_flutter/View/telas_transparencia/transparencia_passiva/transparencia_passiva.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:url_launcher/url_launcher.dart';

class Transparencia extends StatefulWidget {
  const Transparencia({Key? key}) : super(key: key);

  @override
  State<Transparencia> createState() => _TransparenciaState();
}

class _TransparenciaState extends State<Transparencia> {

  String texto1 = 'Existem informações consideradas imprescindíveis à segurança da sociedade '
      'ou do Estado e, portanto, passíveis de classificação. Mesmo sendo públicas, o acesso a '
      'elas deve ser limitado por um tempo determinado. De acordo com o art. 26 da LAI Distrital tais informações '
      'podem ser classificadas como reservadas, secretas e ultrassecretas. Informamos que a Secretaria '
      'de Estado de Saúde do Distrito Federal não possui informações classificadas neste sentido.';

  String texto2 = 'Existem informações consideradas imprescindíveis à segurança da sociedade '
      'ou do Estado...';

  //textos da transparência passiva
  String texto3 = 'A Lei de Acesso à Informação garante o direito de acesso '
      'às informações públicas, e as leis federais e distritais obrigam '
      'o Distrito Federal a disponibilizar as informações solicitadas, desde que não protegidas por sigilo.';

  String texto4 = 'A Transparência Ativa é a divulgação espontânea de informações pelo órgão público, enquanto a '
      'Transparência Passiva ocorre após uma solicitação de informação.';

  //textos do sic
  String texto5 = 'A Lei de Acesso instituiu como um dever do Estado a criação de um ponto de contato entre '
      'a sociedade e o setor público, que é o Serviço de Informações ao Cidadão - SIC.';

  String texto6 = 'O Sistema Eletrônico do Serviço de Informações ao Cidadão - e-SIC é o canal '
      'para registro de pedidos de acesso à informação, pela internet, '
      'aos órgãos e entidades do Governo do Distrito Federal. No e-SIC é possível registrar o pedido, '
      'consultar as respostas recebidas, entrar com recursos, entre outras ações.';

  Future<void>? _launched;

  Future<void> _launchInBrowser(Uri url) async {

    if(!await launchUrl(url, mode: LaunchMode.externalApplication)){
      throw Exception('Could not launch $url');
    }

  }

  double width_containers = 180;
  double height_containers = 150;

  double width_containers_2 = 280;
  double height_containers_2 = 220;

  @override
  Widget build(BuildContext context) {

    final Uri link1 = Uri.parse(
        'https://www.cg.df.gov.br/o-que-e-o-acesso-a-informacoes/'
    );

    final Uri link2 = Uri.parse(
      'https://www.saude.df.gov.br/perguntas-frequentes-sesdf'
    );

    final Uri link3 = Uri.parse(
        'https://www.df.gov.br/category/perguntas-frequentes/'
    );

    return Scaffold(
        backgroundColor: Colors.white,
        body: SingleChildScrollView(
          padding: const EdgeInsets.all(16),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.end,
            children: <Widget>[

              //LAI
              Container(
                padding: const EdgeInsets.all(10),
                width: double.infinity,
                height: 220,
                decoration: BoxDecoration(
                    color: Colors.white,
                    borderRadius: BorderRadius.circular(20),
                    boxShadow: [
                      BoxShadow(
                          color: Colors.grey.withOpacity(0.2),
                          blurRadius: 12,
                          offset: const Offset(0, 0)
                      )
                    ]
                ),
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.center,
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [

                    //LAI
                    Text('Conheça a Lei de Acesso à informação - LAI',
                        style: GoogleFonts.kanit().copyWith(
                            fontWeight: FontWeight.bold, fontSize: 18, color: Colors.black)),
                    const SizedBox(height: 8,),
                    Container(width: 180, height: 5, color: const Color(0xff2E6EA7),),
                    const SizedBox(height: 25,),
                    GestureDetector(
                      onTap: (){
                        _launched = _launchInBrowser(link1);
                      },
                      child: Container(
                        width: 150,
                        height: 60,
                        decoration: BoxDecoration(
                          border: const Border(),
                          borderRadius: BorderRadius.circular(20),
                          color: const Color(0xfff2ab11),
                        ),
                        child: Row(
                          mainAxisAlignment: MainAxisAlignment.center,
                          crossAxisAlignment: CrossAxisAlignment.center,
                          children: <Widget>[
                            Text('Clique aqui',
                              style: GoogleFonts.kanit().copyWith(
                                  fontWeight: FontWeight.bold, fontSize: 18, color: const Color(0xff2E6EA7)),
                            )
                          ],
                        ),
                      ),
                    ),
                  ],
                ),
              ),

              //Institucional
              Container(
                margin: const EdgeInsets.only(top: 22),
                width: double.infinity,
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.start,
                  children: <Widget>[
                    Text('Institucional',
                      style: GoogleFonts.kanit().copyWith(fontWeight: FontWeight.bold, fontSize: 22, color: const Color(0xff2E6EA7)),
                    ),
                    const SizedBox(height: 5,),
                    SizedBox(
                        height: height_containers,
                        child: ListView(
                          scrollDirection: Axis.horizontal,
                          padding: const EdgeInsets.all(10),
                          children: [

                            //Estrutura
                            InkWell(
                                onTap: (){
                                  Navigator.push(context, MaterialPageRoute(builder: (context) => Estrutura()));
                                },
                                child: Container(
                                  padding: const EdgeInsets.all(10),
                                  margin: const EdgeInsets.only(right: 20),
                                  width: width_containers,
                                  decoration: BoxDecoration(
                                      color: Colors.white,
                                      borderRadius: BorderRadius.circular(20),
                                      boxShadow: [
                                        BoxShadow(
                                            color: Colors.grey.withOpacity(0.2),
                                            blurRadius: 12,
                                            offset: const Offset(0, 0)
                                        )
                                      ]
                                  ),
                                  child: Column(
                                    crossAxisAlignment: CrossAxisAlignment.start,
                                    mainAxisAlignment: MainAxisAlignment.center,
                                    children: [
                                      Text('Estrutura',
                                          style: GoogleFonts.kanit().copyWith(fontWeight: FontWeight.bold, fontSize: 18, color: Colors.black)),
                                      const SizedBox(height: 8,),
                                      Container(width: 180, height: 5, color: Colors.orange,),

                                    ],
                                  ),
                                )
                            ),

                            //Competências
                            InkWell(
                                onTap: (){
                                  Navigator.push(context, MaterialPageRoute(builder: (context) => Competencias()));
                                },
                                child: Container(
                                  padding: const EdgeInsets.all(10),
                                  margin: const EdgeInsets.only(right: 20),
                                  width: width_containers,
                                  decoration: BoxDecoration(
                                      color: Colors.white,
                                      borderRadius: BorderRadius.circular(20),
                                      boxShadow: [
                                        BoxShadow(
                                            color: Colors.grey.withOpacity(0.2),
                                            blurRadius: 12,
                                            offset: const Offset(0, 0)
                                        )
                                      ]
                                  ),
                                  child: Column(
                                    crossAxisAlignment: CrossAxisAlignment.start,
                                    mainAxisAlignment: MainAxisAlignment.center,
                                    children: [
                                      Text('Competências',
                                          style: GoogleFonts.kanit().copyWith(fontWeight: FontWeight.bold, fontSize: 18, color: Colors.black)),
                                      const SizedBox(height: 8,),
                                      Container(width: 180, height: 5, color: Colors.orange,),

                                    ],
                                  ),
                                )
                            ),

                            //Base jurídica
                            InkWell(
                                onTap: (){
                                  Navigator.push(context, MaterialPageRoute(builder: (context) => BaseJuridica()));
                                },
                                child: Container(
                                  padding: const EdgeInsets.all(10),
                                  margin: const EdgeInsets.only(right: 20),
                                  width: width_containers,
                                  decoration: BoxDecoration(
                                      color: Colors.white,
                                      borderRadius: BorderRadius.circular(20),
                                      boxShadow: [
                                        BoxShadow(
                                            color: Colors.grey.withOpacity(0.2),
                                            blurRadius: 12,
                                            offset: const Offset(0, 0)
                                        )
                                      ]
                                  ),
                                  child: Column(
                                    crossAxisAlignment: CrossAxisAlignment.start,
                                    mainAxisAlignment: MainAxisAlignment.center,
                                    children: [
                                      Text('Base Jurídica',
                                          style: GoogleFonts.kanit().copyWith(fontWeight: FontWeight.bold, fontSize: 18, color: Colors.black)),
                                      const SizedBox(height: 8,),
                                      Container(width: 180, height: 5, color: Colors.orange,),

                                    ],
                                  ),
                                )
                            ),

                            //Quem é quem
                            InkWell(
                                onTap: (){
                                  Navigator.push(context, MaterialPageRoute(builder: (context) => Quem(true)));
                                },
                                child: Container(
                                  padding: const EdgeInsets.all(10),
                                  margin: const EdgeInsets.only(right: 20),
                                  width: width_containers,
                                  decoration: BoxDecoration(
                                      color: Colors.white,
                                      borderRadius: BorderRadius.circular(20),
                                      boxShadow: [
                                        BoxShadow(
                                            color: Colors.grey.withOpacity(0.2),
                                            blurRadius: 12,
                                            offset: const Offset(0, 0)
                                        )
                                      ]
                                  ),
                                  child: Column(
                                    crossAxisAlignment: CrossAxisAlignment.start,
                                    mainAxisAlignment: MainAxisAlignment.center,
                                    children: [
                                      Text('Quem é quem',
                                          style: GoogleFonts.kanit().copyWith(fontWeight: FontWeight.bold, fontSize: 18, color: Colors.black)),
                                      const SizedBox(height: 8,),
                                      Container(width: 180, height: 5, color: Colors.orange,),

                                    ],
                                  ),
                                )
                            )
                          ],
                        )
                    )
                  ],
                ),
              ),

              //Mais sobre a transparência
              Container(
                margin: const EdgeInsets.only(top: 50),
                width: double.infinity,
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.start,
                  children: <Widget>[
                    Text('Mais sobre a transparência',
                      style: GoogleFonts.kanit().copyWith(fontWeight: FontWeight.bold, fontSize: 22, color: const Color(0xff2E6EA7)),
                    ),
                    const SizedBox(height: 5,),
                    SizedBox(
                        height: height_containers_2,
                        child: ListView(
                          scrollDirection: Axis.horizontal,
                          padding: const EdgeInsets.all(10),
                          children: [

                            //Informações classificadas
                            InkWell(
                                onTap: (){
                                  Navigator.push(context, MaterialPageRoute(builder: (context) => InformacoesClassificadas()));
                                },
                                child: Container(
                                  padding: const EdgeInsets.all(10),
                                  margin: const EdgeInsets.only(right: 20),
                                  width: width_containers_2,
                                  decoration: BoxDecoration(
                                      color: Colors.white,
                                      borderRadius: BorderRadius.circular(20),
                                      boxShadow: [
                                        BoxShadow(
                                            color: Colors.grey.withOpacity(0.2),
                                            blurRadius: 12,
                                            offset: const Offset(0, 0)
                                        )
                                      ]
                                  ),
                                  child: Column(
                                    crossAxisAlignment: CrossAxisAlignment.start,
                                    mainAxisAlignment: MainAxisAlignment.center,
                                    children: [
                                      Text('Informações Classificadas',
                                          style: GoogleFonts.kanit().copyWith(fontWeight: FontWeight.bold, fontSize: 18, color: Colors.black)),
                                      const SizedBox(height: 8,),
                                      Container(width: 180, height: 5, color: Colors.orange,),
                                      const SizedBox(height: 8,),
                                      Text(texto2,
                                        style: GoogleFonts.kanit().copyWith(fontWeight: FontWeight.normal, fontSize: 15, color: Colors.black),
                                      ),
                                      const SizedBox(height: 8,),
                                      Text('Leia mais',
                                        style: GoogleFonts.kanit().copyWith(fontWeight: FontWeight.bold, fontSize: 18, color: const Color(0xff2E6EA7)),
                                      ),

                                    ],
                                  ),
                                )
                            ),

                            //Perguntas Frequentes da SES
                            InkWell(
                                onTap: (){
                                  _launched = _launchInBrowser(link2);
                                },
                                child: Container(
                                  padding: const EdgeInsets.all(10),
                                  margin: const EdgeInsets.only(right: 20),
                                  width: width_containers_2,
                                  decoration: BoxDecoration(
                                      color: Colors.white,
                                      borderRadius: BorderRadius.circular(20),
                                      boxShadow: [
                                        BoxShadow(
                                            color: Colors.grey.withOpacity(0.2),
                                            blurRadius: 12,
                                            offset: const Offset(0, 0)
                                        )
                                      ]
                                  ),
                                  child: Column(
                                    crossAxisAlignment: CrossAxisAlignment.start,
                                    mainAxisAlignment: MainAxisAlignment.center,
                                    children: [
                                      Text('Perguntas Frequentes da SES/DF',
                                          style: GoogleFonts.kanit().copyWith(fontWeight: FontWeight.bold, fontSize: 18, color: Colors.black)),
                                      const SizedBox(height: 8,),
                                      Container(width: 180, height: 5, color: Colors.orange,),

                                    ],
                                  ),
                                )
                            ),

                            //Perguntas frequentes da LAI
                            InkWell(
                                onTap: (){
                                  _launched = _launchInBrowser(link3);
                                },
                                child: Container(
                                  padding: const EdgeInsets.all(10),
                                  margin: const EdgeInsets.only(right: 20),
                                  width: width_containers_2,
                                  decoration: BoxDecoration(
                                      color: Colors.white,
                                      borderRadius: BorderRadius.circular(20),
                                      boxShadow: [
                                        BoxShadow(
                                            color: Colors.grey.withOpacity(0.2),
                                            blurRadius: 12,
                                            offset: const Offset(0, 0)
                                        )
                                      ]
                                  ),
                                  child: Column(
                                    crossAxisAlignment: CrossAxisAlignment.start,
                                    mainAxisAlignment: MainAxisAlignment.center,
                                    children: [
                                      Text('Perguntas Frequentes da LAI',
                                          style: GoogleFonts.kanit().copyWith(fontWeight: FontWeight.bold, fontSize: 18, color: Colors.black)),
                                      const SizedBox(height: 8,),
                                      Container(width: 180, height: 5, color: Colors.orange,),

                                    ],
                                  ),
                                )
                            ),

                          ],
                        )
                    )
                  ],
                ),
              ),

              //serviço de informação ao cidadão - sic
              Container(
                margin: const EdgeInsets.only(top: 50, bottom: 70),
                padding: const EdgeInsets.all(10),
                width: double.infinity,
                height: 560,
                decoration: BoxDecoration(
                    color: Colors.white,
                    borderRadius: BorderRadius.circular(20),
                    boxShadow: [
                      BoxShadow(
                          color: Colors.grey.withOpacity(0.2),
                          blurRadius: 12,
                          offset: const Offset(0, 0)
                      )
                    ]
                ),
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.center,
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [

                    //SIC
                    Text('Serviço de Informação ao Cidadão',
                        style: GoogleFonts.kanit().copyWith(
                            fontWeight: FontWeight.bold, fontSize: 22, color: Colors.black)),
                    const SizedBox(height: 8,),
                    Container(width: 180, height: 5, color: const Color(0xff2E6EA7),),
                    const SizedBox(height: 25,),
                    Text(texto5,
                        style: GoogleFonts.kanit().copyWith(
                            fontWeight: FontWeight.normal, fontSize: 16, color: Colors.black)),
                    const SizedBox(height: 25,),
                    Text(texto6,
                        style: GoogleFonts.kanit().copyWith(
                            fontWeight: FontWeight.normal, fontSize: 16, color: Colors.black)),
                    const SizedBox(height: 25,),
                    GestureDetector(
                      onTap: (){
                        Navigator.push(context, MaterialPageRoute(builder: (context) => SicScreen()));
                      },
                      child: Container(
                        width: 150,
                        height: 60,
                        decoration: BoxDecoration(
                          border: const Border(),
                          borderRadius: BorderRadius.circular(20),
                          color: const Color(0xfff2ab11),
                        ),
                        child: Row(
                          mainAxisAlignment: MainAxisAlignment.center,
                          crossAxisAlignment: CrossAxisAlignment.center,
                          children: <Widget>[
                            Text('Saiba Mais',
                              style: GoogleFonts.kanit().copyWith(
                                  fontWeight: FontWeight.bold, fontSize: 18, color: const Color(0xff2E6EA7)),
                            )
                          ],
                        ),
                      ),
                    ),
                  ],
                ),
              ),

              //Transparencia Passiva
              Container(
                padding: const EdgeInsets.all(10),
                width: double.infinity,
                height: 520,
                decoration: BoxDecoration(
                    color: Colors.white,
                    borderRadius: BorderRadius.circular(20),
                    boxShadow: [
                      BoxShadow(
                          color: Colors.grey.withOpacity(0.2),
                          blurRadius: 12,
                          offset: const Offset(0, 0)
                      )
                    ]
                ),
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.center,
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: [

                    //Transparência Passiva
                    Text('Transparência Passiva',
                        style: GoogleFonts.kanit().copyWith(
                            fontWeight: FontWeight.bold, fontSize: 22, color: Colors.black)),
                    const SizedBox(height: 8,),
                    Container(width: 180, height: 5, color: const Color(0xff2E6EA7),),
                    const SizedBox(height: 25,),
                    Text(texto3,
                        style: GoogleFonts.kanit().copyWith(
                            fontWeight: FontWeight.normal, fontSize: 16, color: Colors.black)),
                    const SizedBox(height: 25,),
                    Text(texto4,
                        style: GoogleFonts.kanit().copyWith(
                            fontWeight: FontWeight.normal, fontSize: 16, color: Colors.black)),
                    const SizedBox(height: 25,),
                    GestureDetector(
                      onTap: (){
                        Navigator.push(context, MaterialPageRoute(builder: (context) => TransparenciaPassiva()));
                      },
                      child: Container(
                        width: 150,
                        height: 60,
                        decoration: BoxDecoration(
                          border: const Border(),
                          borderRadius: BorderRadius.circular(20),
                          color: const Color(0xfff2ab11),
                        ),
                        child: Row(
                          mainAxisAlignment: MainAxisAlignment.center,
                          crossAxisAlignment: CrossAxisAlignment.center,
                          children: <Widget>[
                            Text('Saiba Mais',
                              style: GoogleFonts.kanit().copyWith(
                                  fontWeight: FontWeight.bold, fontSize: 18, color: const Color(0xff2E6EA7)),
                            )
                          ],
                        ),
                      ),
                    ),
                  ],
                ),
              ),

            ],
          ),
        )
    );
  }
}

