mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-12 09:27:01 +00:00
init color theme in tests
This commit is contained in:
parent
5b1b3d05c8
commit
3f0498a418
3 changed files with 9 additions and 0 deletions
|
@ -1,8 +1,11 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:stackwallet/utilities/theme/color_theme.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
||||
void main() {
|
||||
StackTheme.instance.setTheme(ThemeType.light);
|
||||
testWidgets("AppBarIconButton test", (tester) async {
|
||||
int buttonPressedCount = 0;
|
||||
final button = AppBarIconButton(
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:stackwallet/utilities/theme/color_theme.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/draggable_switch_button.dart';
|
||||
|
||||
void main() {
|
||||
StackTheme.instance.setTheme(ThemeType.light);
|
||||
testWidgets("DraggableSwitchButton tapped", (tester) async {
|
||||
bool? isButtonOn = false;
|
||||
final button = DraggableSwitchButton(
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:stackwallet/utilities/theme/color_theme.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/custom_pin_put/custom_pin_put.dart';
|
||||
import 'package:stackwallet/widgets/custom_pin_put/pin_keyboard.dart';
|
||||
|
||||
void main() {
|
||||
StackTheme.instance.setTheme(ThemeType.light);
|
||||
group("CustomPinPut tests", () {
|
||||
testWidgets("CustomPinPut with 4 fields builds correctly", (tester) async {
|
||||
const pinPut = CustomPinPut(fieldsCount: 4);
|
||||
|
|
Loading…
Reference in a new issue