Remove unused graphics.

This commit is contained in:
Dain Nilsson 2023-12-20 15:44:43 +01:00
parent 605a5fb27d
commit 62e73a246e
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8
7 changed files with 1 additions and 28 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -1,24 +0,0 @@
/*
* Copyright (C) 2022 Yubico.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import 'package:flutter/material.dart';
final Image noAccounts = _graphic('no-accounts');
final Image noFingerprints = _graphic('no-fingerprints');
final Image noPermission = _graphic('no-permission');
final Image manageAccounts = _graphic('manage-accounts');
Image _graphic(String name) => Image.asset('assets/graphics/$name.png');

View File

@ -69,11 +69,8 @@ class MainPage extends ConsumerWidget {
});
final deviceNode = ref.watch(currentDeviceProvider);
final isDarkTheme = Theme.of(context).brightness == Brightness.dark;
final noKeyImage = Image.asset(
isDarkTheme
? 'assets/graphics/no-key_dark.png'
: 'assets/graphics/no-key.png',
'assets/graphics/no-key.png',
filterQuality: FilterQuality.medium,
scale: 2,
color: Theme.of(context).colorScheme.primary,