Orientação gerada a partir de informações públicas. Apenas para referência.
O pacote footer é uma solução personalizável do Flutter para criar rodapés consistentes e responsivos em aplicativos para Android, iOS, Web, macOS, Windows e Linux. Simplifica a implementação de navegação inferior ou seções de conteúdo com estilos embutidos, animações e flexibilidade de layout. Projetado para desenvolvedores que buscam uma experiência unificada de rodapé sem escrever código boilerplate, suporta conteúdo dinâmico e designs adaptáveis. O pacote se integra perfeitamente em projetos Flutter existentes por meio do pub.dev.
Casos de uso
Adicionar barras de navegação inferior consistentes
Criando rodapés de aplicativos personalizados com conteúdo dinâmico
Implementando layouts responsivos em múltiplas plataformas
Design de painéis inferiores interativos
Construindo componentes de rodapé reutilizáveis
Melhorando a consistência da interface de usuário entre dispositivos
The flutter footer uses a component called FooterView. The FooterView Component takes three arguments which are as follows:
children : this is a Scrollable List of Widgets
footer : Takes a Footer Component that takes a Customizable Widget e.g a Container Widget
flex : This takes an interger from 1-10. This flex the footer space of the screen with 2 being the default.
NB: The children and footer parameters are mandatory. See Example
FooterView(
children: <Widget>[
... //this is a Scrollable List of Widgets
],
footer : Footer( //this takes the Footer Component which has 4 arguments with one being mandatory ie the child
child: Container(), //This take a Cusstomisable Widget eg Container, Column e.t.c
... //See Description Below for the other arguments of the Footer Component
),
flex: 2//this take an interger that ranges from 1-10 with 2 being the default for the Footer Area
)
The Footer Component takes four arguments with one being Mandatory ie child Widget ,see Fig below.
Footer(
child: Container(), //The child Widget is mandatory takes any Customisable Widget for the footer
backgroundColor : Colors.grey.shade200 // defines the background Colors of the Footer with default Colors.grey.shade200
padding: EdgeInsets.all(5.0),// Takes EdgeInsetsGeometry with default being EdgeInsets.all(5.0)
alignment: Alignment.bottomCenter //this is of type Aligment with default being Alignment.bottomCenter
)
Imports
After installing the footer package remember the imports
MIT LicenseCopyright (c) 2020TafadzwaLameckNyamukapaPermissionis hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Softwareis
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
This project is a starting point for a Dart
package,
a library module containing code that can be shared easily across
multiple Flutter or Dart projects.