Orientação gerada a partir de informações públicas. Apenas para referência.
O pacote de crossword é uma biblioteca Flutter que permite aos desenvolvedores integrar funcionalidades interativas de resolução de palavras cruzadas em seus aplicativos. Ele fornece uma interface personalizável para exibir e interagir com grades de palavras cruzadas, suportando pistas horizontais e verticais. Projetado para jogos e aplicativos educacionais, permite que os usuários digitem respostas diretamente na grade com validação e feedback em tempo real. O pacote é compatível com todas as principais plataformas, incluindo móvel, web e desktop, tornando-o ideal para experiências de quebra-cabeças multiplataforma.
Casos de uso
Integrando quebra-cabeças de palavras cruzadas em aplicativos educacionais
Adicionando desafios de quebra-cabeça em aplicativos de jogo
Criando jogos interativos de palavras para web e móvel
Apoiar o aprendizado de idiomas por meio de exercícios de palavras cruzadas
Habilitar conteúdo de quebra-cabeças gerado pelo usuário
Principais recursos
Grade de de crucigrama interativa com entrada por toque
Suporte para carregamento dinâmico de quebra-cabeças
Indicado para
desenvolvedores de aplicativos educacionais
Desenvolvedores de jogos procurando mecânicas de quebra-cabeças
criadores de aplicativos de aprendizado de idiomas
Construtores de aplicativos multiplataforma
Usuários do Flutter que buscam interfaces de quebra-cabeças semelhantes às nativas
Considerações
Requer dados estruturados de quebra-cabeças (por exemplo, grade e pistas)
Pode ser necessário lógica adicional para pistas ou pontuação
O desempenho pode variar com quebra-cabeças muito grandes
Ferramentas limitadas de criação de quebra-cabeças integradas
Depende de fontes externas de dados para o conteúdo dos quebra-cabeças
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
NEW: LetterPop Animation
Crossword
Crossword is a comprehensive solution for seamlessly integrating a crossword puzzle-solving user
interface into your Flutter app. With this package, you can effortlessly provide users with an
interactive and enjoyable crossword puzzle-solving experience within your application.
Features
Customizable Crossword Widget:
The package offers a customizable crossword widget that can be easily integrated into any Flutter
app. You can adjust the widget's appearance, size, and layout to match your app's design and
theme.
User-Friendly Interface:
The user interface is designed with simplicity and ease of use in mind. Users can intuitively
navigate through the puzzle, pan, and select the letters to choose words.
Clue Management:
Manage crossword clues effortlessly with this package by passing the list of words into
the Crossword widget.
initialLineList: Accepts a List of LineOffset to add initial lines to the crossword
-- A LineOffset is a class that takes the start and end positions of the line
acceptReversedDirection: accepts a bool to identify while creating the words by touching in
the reversed direction, is enabled or not
drawCrossLine: accepts a bool, and identifies if the user can interact in the Cross
direction or not.
drawVerticalLine: accepts a bool, and identifies if the user can interact in the Vertical
direction or not.
drawHorizontalLine: accepts a bool, and identifies if the user can interact in
the Horizontal direction or not.
drawCrossLine, drawVerticalLine, drawHorizontalLine can't be set as false altogether.
lineDecoration: Decorate lines to update colors based on the input and clues
textStyle: Add styles to the crossword letters
transposeMatrix: Transpose the 2x2 matrix
alowOverlap: Accepts a bool to identify if the user can overlap the words or not
addIncorrectWord: Accepts a bool to identify if the user can draw incorrect lines or not
Line Decoration - parameters
lineGradientColors: Accepts a List of List of Colors to update the gradient colors of the
lines.
incorrectGradientColors: Accepts a List of Colors to update the gradient colors of the lines
when the user draws an incorrect line.
correctGradientColors: Accepts a List of Colors to update the gradient colors of the lines
when the user draws a correct line.
strokeWidth: Accepts a double to update the width of the lines.
strokeCap: Accepts a StrokeCap to update the stroke cap of the lines.
lineTextStyle: Accepts a TextStyle to update the style of the words which are drawn by the user.
Reveal Letter Animation
Use a Global Key to access the Crossword widget and call the animate method to animate the letter
decoration.