Substituir RaisedButton por PenhasButton na página de compose_tweet_page #274
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposta de Pull Request: Refatoração da Página de Composição de Tweets
Descrição
Este Pull Request implementa melhorias na página de composição de tweets, atualizando componentes para utilizar o novo Design System e ajustando a lógica de código para maior consistência e clareza.
Alterações Principais
Substituição do
RaisedButton
porPenhasButton.roundedFilled
:elevation
,shape
ecolor
.Remoção de operador nulo condicional obsoleto:
WidgetsBinding.instance?.focusManager.primaryFocus?.unfocus()
porWidgetsBinding.instance.focusManager.primaryFocus?.unfocus()
.Atualização dos arquivos de snapshot de UI:
Alterações nos Arquivos
Código
lib/app/features/feed/presentation/compose_tweet/compose_tweet_page.dart
Testes de Interface
test/app/features/feed/presentation/compose_tweet/goldens/ci/compose_tweet_page.png
test/app/features/feed/presentation/compose_tweet/goldens/ci/compose_tweet_page_with_app_bar.png
test/app/features/feed/presentation/compose_tweet/goldens/ci/compose_tweet_page_with_error.png
test/app/features/feed/presentation/compose_tweet/goldens/ci/compose_tweet_page_with_text.png
Trechos de Código
Antes
Depois
Como Testar
Justificativa
Estas alterações são necessárias para garantir consistência com o Design System atual e modernizar o código, removendo elementos obsoletos. Além disso, o uso de componentes reutilizáveis melhora a manutenção do projeto e a legibilidade do código.