refactor peer tab with model, make it scrollable

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-02-03 15:07:45 +08:00
parent 133fba573b
commit 40d0ea016b
7 changed files with 423 additions and 319 deletions

View file

@ -643,9 +643,9 @@ class _PasswordWidgetState extends State<PasswordWidget> {
// Here is key idea
suffixIcon: IconButton(
icon: Icon(
// Based on passwordVisible state choose the icon
_passwordVisible ? Icons.visibility : Icons.visibility_off,
),
// Based on passwordVisible state choose the icon
_passwordVisible ? Icons.visibility : Icons.visibility_off,
color: MyTheme.lightTheme.primaryColor),
onPressed: () {
// Update the state i.e. toggle the state of passwordVisible variable
setState(() {