Skip to content

Conversation

@simaopsbarbosa
Copy link
Contributor

@simaopsbarbosa simaopsbarbosa commented Nov 5, 2025

Closes #1667

The goal of this PR is to remove completely the material.dart package dependency from uni.

Widgets we need to replace

  • IconButton
  • Badge
  • ListTile
  • ExpansionTile
  • CardTheme
  • Tooltip
  • CircleAvatar
  • Dialog
  • BottomNavigationBar
  • BottomNavigationBarType
  • .copyWith method
  • Tab
  • ThemeMode
  • CircularProgressIndicator
  • DateUtils
  • DropdownButton
  • DropdownMenuItem
  • MaterialPageRoute
  • showDialog
  • TabController
  • TabBar
  • TabBarView
  • TextFormField
  • InputDecoration
  • FloatingLabelBehavior
  • OutlineInputBorder 
  • ElevatedButton
  • InkWell
  • InkResponse
  • AlertDialog
  • TextButton
  • MaterialTapTargetSize
  • ButtonTheme
  • Scaffold
  • FloatingActionButtonLocation
  • FloatingActionButton
  • RefreshIndicator
  • UnderlineInputBorder
  • Checkbox
  • SimpleDialogOption
  • Card
  • Switch
  • Divider
  • ListTileControlAffinity
  • FilledButton
  • AppBar
  • BackButton

Colors we don't have currently

  • scaffoldBackgroundColor
  • outline
  • cardColor

Review checklist

  • Terms and conditions reflect the changes

View Changes

  • Description has screenshots of the UI changes.
  • Tested both in light and dark mode.
  • New text is both in portuguese (PT) and english (EN).
  • Works in different text zoom levels.
  • Works in different screen sizes.

Performance

  • No helper functions to return widgets are added. New widgets are created instead.
  • Used ListView.builder for Long Lists.
  • Controllers (TextEditingController, ...) are beeing disposed of in dispose() method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove Material package as a dependency

2 participants