extremely simplyfied code
This commit is contained in:
parent
f343214df0
commit
893b421fe3
1 changed files with 1 additions and 5 deletions
|
@ -1,7 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:intl/intl.dart';
|
import 'package:intl/intl.dart';
|
||||||
import 'package:intl/date_symbol_data_local.dart';
|
import 'package:intl/date_symbol_data_local.dart';
|
||||||
import 'expand.dart';
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
todo:
|
todo:
|
||||||
|
@ -20,7 +19,6 @@ class Transaction {
|
||||||
Art art;
|
Art art;
|
||||||
DateTime datum;
|
DateTime datum;
|
||||||
String beschreibung;
|
String beschreibung;
|
||||||
bool elevated = false;
|
|
||||||
Transaction(this.art, this.betrag, this.datum, this.beschreibung);
|
Transaction(this.art, this.betrag, this.datum, this.beschreibung);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,10 +94,8 @@ class Finance extends StatelessWidget {
|
||||||
return Card(
|
return Card(
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
splashColor: const Color(0xff5f7c61).withAlpha(30),
|
splashColor: const Color(0xff5f7c61).withAlpha(50),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
transactions[index].elevated =
|
|
||||||
!transactions[index].elevated;
|
|
||||||
showBottomSheet(
|
showBottomSheet(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
|
|
Loading…
Reference in a new issue