mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +00:00
remove unused file and color fix
This commit is contained in:
parent
d04caa0fb7
commit
bd634e5564
2 changed files with 2 additions and 99 deletions
|
@ -1,98 +0,0 @@
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
// import 'package:stackwallet/themes/stack_colors.dart';
|
|
||||||
// import 'package:stackwallet/utilities/text_styles.dart';
|
|
||||||
// import 'package:stackwallet/utilities/util.dart';
|
|
||||||
// import 'package:stackwallet/widgets/rounded_white_container.dart';
|
|
||||||
|
|
||||||
// class TransactionV2DetailsItem extends StatelessWidget {
|
|
||||||
// const TransactionV2DetailsItem({
|
|
||||||
// super.key,
|
|
||||||
// required this.label,
|
|
||||||
// required this.data,
|
|
||||||
// required this.infoOrientation,
|
|
||||||
// this.topRight,
|
|
||||||
// this.bottomLeft,
|
|
||||||
// });
|
|
||||||
//
|
|
||||||
// final String label;
|
|
||||||
// final String data;
|
|
||||||
// final Axis infoOrientation;
|
|
||||||
// final bool showLabelBelowData;
|
|
||||||
//
|
|
||||||
// final Widget? topRight;
|
|
||||||
// final Widget? bottomLeft;
|
|
||||||
//
|
|
||||||
// @override
|
|
||||||
// Widget build(BuildContext context) {
|
|
||||||
// final isDesktop = Util.isDesktop;
|
|
||||||
//
|
|
||||||
// return RoundedWhiteContainer(
|
|
||||||
// padding: isDesktop ? const EdgeInsets.all(16) : const EdgeInsets.all(12),
|
|
||||||
// child: CommonChildren(
|
|
||||||
// buildIndex: infoOrientation == Axis.vertical ? 0 : 1,
|
|
||||||
// builders: [
|
|
||||||
// (children) => Column(
|
|
||||||
// children: children,
|
|
||||||
// ),
|
|
||||||
// (children) => Row(
|
|
||||||
// children: children,
|
|
||||||
// ),
|
|
||||||
// ],
|
|
||||||
// children: [
|
|
||||||
// Text(
|
|
||||||
// label,
|
|
||||||
// style: isDesktop
|
|
||||||
// ? STextStyles.desktopTextExtraExtraSmall(context)
|
|
||||||
// : STextStyles.itemSubtitle(context),
|
|
||||||
// ),
|
|
||||||
// const SizedBox(height: 8,),
|
|
||||||
// SelectableText(
|
|
||||||
// data,
|
|
||||||
// style: isDesktop
|
|
||||||
// ? STextStyles.desktopTextExtraExtraSmall(context).copyWith(
|
|
||||||
// color: Theme.of(context).extension<StackColors>()!.textDark,
|
|
||||||
// )
|
|
||||||
// : STextStyles.itemSubtitle12(context),
|
|
||||||
// ),
|
|
||||||
//
|
|
||||||
// ],
|
|
||||||
// ),
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
class CommonChild extends StatelessWidget {
|
|
||||||
const CommonChild({
|
|
||||||
super.key,
|
|
||||||
required this.builders,
|
|
||||||
required this.buildIndex,
|
|
||||||
required this.child,
|
|
||||||
});
|
|
||||||
|
|
||||||
final Widget child;
|
|
||||||
final int buildIndex;
|
|
||||||
final List<Widget Function(Widget)> builders;
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return builders[buildIndex](child);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class CommonChildren extends StatelessWidget {
|
|
||||||
const CommonChildren({
|
|
||||||
super.key,
|
|
||||||
required this.builders,
|
|
||||||
required this.buildIndex,
|
|
||||||
required this.children,
|
|
||||||
});
|
|
||||||
|
|
||||||
final List<Widget> children;
|
|
||||||
final int buildIndex;
|
|
||||||
final List<Widget Function(List<Widget>)> builders;
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return builders[buildIndex](children);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -626,7 +626,8 @@ class _TransactionV2DetailsViewState
|
||||||
context)
|
context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: _transaction.type ==
|
color: _transaction.type ==
|
||||||
TransactionType.outgoing
|
TransactionType.outgoing && _transaction.subType !=
|
||||||
|
TransactionSubType.cashFusion
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.accentColorOrange
|
.accentColorOrange
|
||||||
|
|
Loading…
Reference in a new issue