{"id":3283,"date":"2022-05-02T17:18:36","date_gmt":"2022-05-02T20:18:36","guid":{"rendered":"https:\/\/www.ufsm.br\/pet\/sistemas-de-informacao\/?p=3283"},"modified":"2025-09-02T14:30:15","modified_gmt":"2025-09-02T17:30:15","slug":"bibliotecas-flutter","status":"publish","type":"post","link":"https:\/\/www.ufsm.br\/pet\/sistemas-de-informacao\/2022\/05\/02\/bibliotecas-flutter","title":{"rendered":"Bibliotecas Flutter"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"3283\" class=\"elementor elementor-3283\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-eea2217 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"eea2217\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-38577c2b\" data-id=\"38577c2b\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a38d87a elementor-widget elementor-widget-text-editor\" data-id=\"a38d87a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><!-- wp:tadv\/classic-paragraph --><\/p>\n<p style=\"color: #000000;font-size: 16px\">Ol\u00e1 pessoal! Nesta edi\u00e7\u00e3o do PET-Reda\u00e7\u00e3o iremos fazer uma breve introdu\u00e7\u00e3o a algumas bibliotecas importantes que ir\u00e3o ajud\u00e1-los em seus desenvolvimentos que utilizam o framework Flutter, apresentando alguns de seus recursos e usos.<\/p>\n<p style=\"color: #000000;font-size: 16px\">Se voc\u00ea n\u00e3o conhece esta tecnologia, atrav\u00e9s deste\u00a0<span style=\"font-weight: bold\"><a href=\"https:\/\/www.ufsm.br\/pet\/sistemas-de-informacao\/2018\/09\/18\/flutter-o-futuro-de-aplicacoes-desktop-mobile-e-web)\">link<\/a>\u00a0<\/span><span style=\"background-color: var(--bs-body-bg);text-align: var(--bs-body-text-align)\">\u00e9 poss\u00edvel acessar o PET Reda\u00e7\u00e3o que introduz o framework, e explica o processo de instala\u00e7\u00e3o.\u00a0<\/span><\/p>\n<p style=\"color: #000000;font-size: 16px\">\u00a0<\/p>\n<p style=\"color: #000000;font-size: 16px;text-align: center\"><span style=\"font-weight: bold\">fl_chart<\/span><\/p>\n<p style=\"color: #000000;font-size: 16px\">FL Chart \u00e9 uma biblioteca utilizada para gerar gr\u00e1ficos customiz\u00e1veis. Seu uso \u00e9 simples e permite a cria\u00e7\u00e3o de diversos tipos de gr\u00e1ficos, tais como Line Chart, Bar Chart, Pie Chart, Scatter Chart, e Radar Chart.\u00a0 No reposit\u00f3rio da biblioteca no github, est\u00e3o dispon\u00edveis diversos tipos de gr\u00e1ficos flex\u00edveis para estiliza\u00e7\u00e3o e configura\u00e7\u00e3o.\u00a0<\/p>\n<p style=\"color: #000000;font-size: 16px\">\u00a0<\/p>\n<p style=\"color: #000000;font-size: 16px\">Vamos para a pr\u00e1tica! Atrav\u00e9s do\u00a0<span style=\"font-weight: bold\"><i><a href=\"https:\/\/pub.dev\/packages\/fl_chart\/install\">link<\/a><\/i><\/span>\u00a0\u00e9 poss\u00edvel acessar\u00a0<\/p>\n<p style=\"color: #000000;font-size: 16px\">a documenta\u00e7\u00e3o da biblioteca para adicionar o\u00a0fl_chart\u00a0ao seu projeto.<\/p>\n<p style=\"color: #000000;font-size: 16px\">Ap\u00f3s ter seguido as instru\u00e7\u00f5es anteriores, ser\u00e1 poss\u00edvel utilizar todos os gr\u00e1ficos da biblioteca no seu projeto. Neste exemplo, vamos gerar um Pie Chart como o da imagem abaixo:<\/p>\n<p style=\"color: #000000;font-size: 16px\"><span style=\"font-weight: bold\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.ufsm.br\/app\/uploads\/sites\/791\/2022\/05\/gif-1-299x234.gif\" alt=\"\" width=\"299\" height=\"234\" \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/span><\/p>\n<p style=\"color: #000000;font-size: 16px\"><code>PieChart(<\/code><\/p>\n<p style=\"color: #000000;font-size: 16px\"><code>\u00a0\u00a0PieChartData(<\/code><\/p>\n<p style=\"color: #000000;font-size: 16px\"><code>\u00a0\u00a0\u00a0\u00a0\/\/ read about it in the PieChartData section<\/code><\/p>\n<p style=\"color: #000000;font-size: 16px\"><code>\u00a0\u00a0),<\/code><\/p>\n<p style=\"color: #000000;font-size: 16px\"><code>\u00a0\u00a0swapAnimationDuration: Duration(milliseconds: 150), \/\/ animacao opcional<\/code><\/p>\n<p style=\"color: #000000;font-size: 16px\"><code>\u00a0\u00a0swapAnimationCurve: Curves.linear, \/\/ animacao opcional<\/code><\/p>\n<p style=\"color: #000000;font-size: 16px\"><code>);<\/code><\/p>\n<p style=\"color: #000000;font-size: 16px\">Esta \u00e9 a estrutura b\u00e1sica do Pie Chart, o c\u00f3digo completo \u00e9 poss\u00edvel acessar atrav\u00e9s do\u00a0<span style=\"font-weight: bold\"><i><a href=\"https:\/\/github.com\/imaNNeoFighT\/fl_chart\/blob\/master\/example\/lib\/pie_chart\/samples\/pie_chart_sample1.dart\">GitHub<\/a>.<\/i><\/span>\u00a0<\/p>\n<p style=\"color: #000000;font-size: 16px\">\u00a0<\/p>\n<p style=\"color: #000000;font-size: 16px;text-align: center\"><span style=\"font-weight: bold\">flutter_native_splash<\/span><\/p>\n<p style=\"color: #000000;font-size: 16px\">Ao abrir um aplicativo, por padr\u00e3o a tela fica branca at\u00e9 ele ser carregado. O flutter_native_splash possibilita que voc\u00ea personalize a tela que \u00e9 mostrada durante o carregamento, sendo poss\u00edvel utilizar modo escuro, tela inteira e op\u00e7\u00f5es espec\u00edficas da plataforma.\u00a0<\/p>\n<p style=\"color: #000000;font-size: 16px\"><span style=\"font-weight: bold\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.ufsm.br\/app\/uploads\/sites\/791\/2022\/05\/gif-2-169x300.gif\" alt=\"\" width=\"169\" height=\"300\" \/>\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">A documenta\u00e7\u00e3o, desde instala\u00e7\u00e3o e uso, pode ser acessada atrav\u00e9s do seguinte <a href=\"https:\/\/pub.dev\/packages\/flutter_native_splash\">link<\/a><\/span><span style=\"font-weight: 400\">.<\/span><\/p>\n<p>\u00a0<\/p>\n<p style=\"text-align: center\"><b>Animations<\/b><\/p>\n<p><span style=\"font-weight: 400\">Esta biblioteca cont\u00e9m anima\u00e7\u00f5es pr\u00e9-constru\u00eddas e altamente customiz\u00e1veis, podendo adicion\u00e1-las em seu projeto, deixando assim mais estilizado. Dentre as diversas funcionalidades, destacam-se:\u00a0<\/span><\/p>\n<h3><span style=\"font-weight: 400\">Container transform:<img decoding=\"async\" class=\"alignnone size-medium wp-image-3286\" src=\"https:\/\/www.ufsm.br\/app\/uploads\/sites\/791\/2022\/05\/gif-3-300x139.gif\" alt=\"\" width=\"300\" height=\"139\" srcset=\"https:\/\/www.ufsm.br\/app\/uploads\/sites\/791\/2022\/05\/gif-3-300x139.gif 300w, https:\/\/www.ufsm.br\/app\/uploads\/sites\/791\/2022\/05\/gif-3-768x356.gif 768w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/span><\/h3>\n<h3><span style=\"font-weight: 400\">Fade through: <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3287\" src=\"https:\/\/www.ufsm.br\/app\/uploads\/sites\/791\/2022\/05\/gif-4-300x158.gif\" alt=\"\" width=\"300\" height=\"158\" srcset=\"https:\/\/www.ufsm.br\/app\/uploads\/sites\/791\/2022\/05\/gif-4-300x158.gif 300w, https:\/\/www.ufsm.br\/app\/uploads\/sites\/791\/2022\/05\/gif-4-768x404.gif 768w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/span><\/h3>\n<p><span style=\"font-weight: 400\">A documenta\u00e7\u00e3o, desde instala\u00e7\u00e3o e uso, pode ser acessada atrav\u00e9s do seguinte link (https:\/\/pub.dev\/packages\/animations).<\/span><\/p>\n<p>\u00a0<\/p>\n<h3 style=\"text-align: center\"><b>cached_network_image<\/b><\/h3>\n<p><span style=\"font-weight: 400\">Esta biblioteca possibilita que imagens da internet fiquem salvas em Cache. Ou seja, mesmo que o usu\u00e1rio n\u00e3o tenha conex\u00e3o com a internet, ter\u00e1 acesso a imagem, pois ela j\u00e1 foi acessada anteriormente e ficou salva.\u00a0<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">A documenta\u00e7\u00e3o, desde instala\u00e7\u00e3o e uso, pode ser acessada atrav\u00e9s do seguinte <a href=\"https:\/\/pub.dev\/packages\/cached_network_image\">link<\/a>.<\/span><\/p>\n<h3 style=\"text-align: center\"><b>\u00a0intro_slider<\/b><\/h3>\n<p><span style=\"font-weight: 400\">O Flutter Intro Slider permite o desenvolvimento de intros para seu app, de maneira simples e intuitiva \u00e9 poss\u00edvel criar uma introdu\u00e7\u00e3o de maneira r\u00e1pida.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3293 aligncenter\" src=\"https:\/\/www.ufsm.br\/app\/uploads\/sites\/791\/2022\/05\/gif-5-169x300.gif\" alt=\"\" width=\"169\" height=\"300\" \/><\/span><\/p>\n<p><span style=\"font-weight: 400\">A documenta\u00e7\u00e3o, desde instala\u00e7\u00e3o e uso, pode ser acessada atrav\u00e9s do seguinte <a href=\"https:\/\/pub.dev\/packages\/intro_slider\">link<\/a><\/span><span style=\"font-weight: 400\">.<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">Fontes:\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/pub.dev\/packages\/fl_chart\/install\"><i><span style=\"font-weight: 400\">https:\/\/pub.dev\/packages\/fl_chart\/install<\/span><\/i><\/a><i><span style=\"font-weight: 400\">\u00a0<\/span><\/i><\/p>\n<p><a href=\"https:\/\/pub.dev\/packages\/flutter_native_splash\"><span style=\"font-weight: 400\">https:\/\/pub.dev\/packages\/flutter_native_splash<\/span><\/a><\/p>\n<p><a href=\"https:\/\/pub.dev\/packages\/animations\"><span style=\"font-weight: 400\">https:\/\/pub.dev\/packages\/animations<\/span><\/a><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/pub.dev\/packages\/cached_network_image\"><span style=\"font-weight: 400\">https:\/\/pub.dev\/packages\/cached_network_image<\/span><\/a><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/pub.dev\/packages\/intro_slider\"><span style=\"font-weight: 400\">https:\/\/pub.dev\/packages\/intro_slide<\/span><\/a><\/p>\n<p><!-- \/wp:tadv\/classic-paragraph --><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Ol\u00e1 pessoal! Nesta edi\u00e7\u00e3o do PET-Reda\u00e7\u00e3o iremos fazer uma breve introdu\u00e7\u00e3o a algumas bibliotecas importantes que ir\u00e3o ajud\u00e1-los em seus desenvolvimentos que utilizam o framework Flutter, apresentando alguns de seus recursos e usos. Se voc\u00ea n\u00e3o conhece esta tecnologia, atrav\u00e9s deste\u00a0link\u00a0\u00e9 poss\u00edvel acessar o PET Reda\u00e7\u00e3o que introduz o framework, e explica o processo de [&hellip;]<\/p>\n","protected":false},"author":3802,"featured_media":3294,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[124,112],"tags":[191,149],"class_list":["post-3283","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-destaques","category-redacao","tag-mobile","tag-redacao"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.ufsm.br\/pet\/sistemas-de-informacao\/wp-json\/wp\/v2\/posts\/3283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ufsm.br\/pet\/sistemas-de-informacao\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ufsm.br\/pet\/sistemas-de-informacao\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ufsm.br\/pet\/sistemas-de-informacao\/wp-json\/wp\/v2\/users\/3802"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ufsm.br\/pet\/sistemas-de-informacao\/wp-json\/wp\/v2\/comments?post=3283"}],"version-history":[{"count":0,"href":"https:\/\/www.ufsm.br\/pet\/sistemas-de-informacao\/wp-json\/wp\/v2\/posts\/3283\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ufsm.br\/pet\/sistemas-de-informacao\/wp-json\/wp\/v2\/media\/3294"}],"wp:attachment":[{"href":"https:\/\/www.ufsm.br\/pet\/sistemas-de-informacao\/wp-json\/wp\/v2\/media?parent=3283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ufsm.br\/pet\/sistemas-de-informacao\/wp-json\/wp\/v2\/categories?post=3283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ufsm.br\/pet\/sistemas-de-informacao\/wp-json\/wp\/v2\/tags?post=3283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}