Skip to content

Commit

Permalink
Merge pull request #883 from Maxr1998/fix-offline-mode-switch
Browse files Browse the repository at this point in the history
  • Loading branch information
jmshrv authored Sep 14, 2024
2 parents d522dcf + c27b8d6 commit fa6e596
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ class OfflineModeSwitchListTile extends StatelessWidget {
padding: EdgeInsets.only(right: 16),
child: Icon(Icons.cloud_off),
),
//trackColor: MaterialStateProperty.all(Colors.black12),
activeTrackColor: Theme.of(context).brightness == Brightness.light
? Theme.of(context).primaryColor.withOpacity(0.5)
: null,
trackOutlineColor: MaterialStateProperty.all(Colors.black26),
thumbColor: MaterialStateProperty.all(Theme.of(context).primaryColor),
inactiveTrackColor: Colors.transparent,
value: box.get("FinampSettings")?.isOffline ?? false,
onChanged: (value) {
FinampSettingsHelper.setIsOffline(value);
Expand Down

0 comments on commit fa6e596

Please sign in to comment.