Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ExpensesList extends StatelessWidget {
itemBuilder: (ctx, index) => Dismissible(
key: ValueKey(expenses[index]),
background: Container(
color: Theme.of(context).colorScheme.error.withOpacity(0.75),
color: Theme.of(context).colorScheme.error.withValues(alpha: 0.75),
margin: EdgeInsets.symmetric(
horizontal: Theme.of(context).cardTheme.margin!.horizontal,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ExpensesList extends StatelessWidget {
itemBuilder: (ctx, index) => Dismissible(
key: ValueKey(expenses[index]),
background: Container(
color: Theme.of(context).colorScheme.error.withOpacity(0.75),
color: Theme.of(context).colorScheme.error.withValues(alpha: 0.75),
margin: EdgeInsets.symmetric(
horizontal: Theme.of(context).cardTheme.margin!.horizontal,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ExpensesList extends StatelessWidget {
itemBuilder: (ctx, index) => Dismissible(
key: ValueKey(expenses[index]),
background: Container(
color: Theme.of(context).colorScheme.error.withOpacity(0.75),
color: Theme.of(context).colorScheme.error.withValues(alpha: 0.75),
margin: EdgeInsets.symmetric(
horizontal: Theme.of(context).cardTheme.margin!.horizontal,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class Chart extends StatelessWidget {
borderRadius: BorderRadius.circular(8),
gradient: LinearGradient(
colors: [
Theme.of(context).colorScheme.primary.withOpacity(0.3),
Theme.of(context).colorScheme.primary.withOpacity(0.0)
Theme.of(context).colorScheme.primary.withValues(alpha: 0.3),
Theme.of(context).colorScheme.primary.withValues(alpha: 0.0)
],
begin: Alignment.bottomCenter,
end: Alignment.topCenter,
Expand Down Expand Up @@ -81,7 +81,7 @@ class Chart extends StatelessWidget {
: Theme.of(context)
.colorScheme
.primary
.withOpacity(0.7),
.withValues(alpha: 0.7),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ChartBar extends StatelessWidget {
const BorderRadius.vertical(top: Radius.circular(8)),
color: isDarkMode
? Theme.of(context).colorScheme.secondary
: Theme.of(context).colorScheme.primary.withOpacity(0.65),
: Theme.of(context).colorScheme.primary.withValues(alpha: 0.65),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ExpensesList extends StatelessWidget {
itemBuilder: (ctx, index) => Dismissible(
key: ValueKey(expenses[index]),
background: Container(
color: Theme.of(context).colorScheme.error.withOpacity(0.75),
color: Theme.of(context).colorScheme.error.withValues(alpha: 0.75),
margin: EdgeInsets.symmetric(
horizontal: Theme.of(context).cardTheme.margin!.horizontal,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class Chart extends StatelessWidget {
borderRadius: BorderRadius.circular(8),
gradient: LinearGradient(
colors: [
Theme.of(context).colorScheme.primary.withOpacity(0.3),
Theme.of(context).colorScheme.primary.withOpacity(0.0)
Theme.of(context).colorScheme.primary.withValues(alpha: 0.3),
Theme.of(context).colorScheme.primary.withValues(alpha: 0.0)
],
begin: Alignment.bottomCenter,
end: Alignment.topCenter,
Expand Down Expand Up @@ -81,7 +81,7 @@ class Chart extends StatelessWidget {
: Theme.of(context)
.colorScheme
.primary
.withOpacity(0.7),
.withValues(alpha: 0.7),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ChartBar extends StatelessWidget {
const BorderRadius.vertical(top: Radius.circular(8)),
color: isDarkMode
? Theme.of(context).colorScheme.secondary
: Theme.of(context).colorScheme.primary.withOpacity(0.65),
: Theme.of(context).colorScheme.primary.withValues(alpha: 0.65),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ExpensesList extends StatelessWidget {
itemBuilder: (ctx, index) => Dismissible(
key: ValueKey(expenses[index]),
background: Container(
color: Theme.of(context).colorScheme.error.withOpacity(0.75),
color: Theme.of(context).colorScheme.error.withValues(alpha: 0.75),
margin: EdgeInsets.symmetric(
horizontal: Theme.of(context).cardTheme.margin!.horizontal,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class Chart extends StatelessWidget {
borderRadius: BorderRadius.circular(8),
gradient: LinearGradient(
colors: [
Theme.of(context).colorScheme.primary.withOpacity(0.3),
Theme.of(context).colorScheme.primary.withOpacity(0.0)
Theme.of(context).colorScheme.primary.withValues(alpha: 0.3),
Theme.of(context).colorScheme.primary.withValues(alpha: 0.0)
],
begin: Alignment.bottomCenter,
end: Alignment.topCenter,
Expand Down Expand Up @@ -81,7 +81,7 @@ class Chart extends StatelessWidget {
: Theme.of(context)
.colorScheme
.primary
.withOpacity(0.7),
.withValues(alpha: 0.7),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ChartBar extends StatelessWidget {
const BorderRadius.vertical(top: Radius.circular(8)),
color: isDarkMode
? Theme.of(context).colorScheme.secondary
: Theme.of(context).colorScheme.primary.withOpacity(0.65),
: Theme.of(context).colorScheme.primary.withValues(alpha: 0.65),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ExpensesList extends StatelessWidget {
itemBuilder: (ctx, index) => Dismissible(
key: ValueKey(expenses[index]),
background: Container(
color: Theme.of(context).colorScheme.error.withOpacity(0.75),
color: Theme.of(context).colorScheme.error.withValues(alpha: 0.75),
margin: EdgeInsets.symmetric(
horizontal: Theme.of(context).cardTheme.margin!.horizontal,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class Chart extends StatelessWidget {
borderRadius: BorderRadius.circular(8),
gradient: LinearGradient(
colors: [
Theme.of(context).colorScheme.primary.withOpacity(0.3),
Theme.of(context).colorScheme.primary.withOpacity(0.0)
Theme.of(context).colorScheme.primary.withValues(alpha: 0.3),
Theme.of(context).colorScheme.primary.withValues(alpha: 0.0)
],
begin: Alignment.bottomCenter,
end: Alignment.topCenter,
Expand Down Expand Up @@ -81,7 +81,7 @@ class Chart extends StatelessWidget {
: Theme.of(context)
.colorScheme
.primary
.withOpacity(0.7),
.withValues(alpha: 0.7),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ChartBar extends StatelessWidget {
const BorderRadius.vertical(top: Radius.circular(8)),
color: isDarkMode
? Theme.of(context).colorScheme.secondary
: Theme.of(context).colorScheme.primary.withOpacity(0.65),
: Theme.of(context).colorScheme.primary.withValues(alpha: 0.65),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ExpensesList extends StatelessWidget {
itemBuilder: (ctx, index) => Dismissible(
key: ValueKey(expenses[index]),
background: Container(
color: Theme.of(context).colorScheme.error.withOpacity(0.75),
color: Theme.of(context).colorScheme.error.withValues(alpha: 0.75),
margin: EdgeInsets.symmetric(
horizontal: Theme.of(context).cardTheme.margin!.horizontal,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class Chart extends StatelessWidget {
borderRadius: BorderRadius.circular(8),
gradient: LinearGradient(
colors: [
Theme.of(context).colorScheme.primary.withOpacity(0.3),
Theme.of(context).colorScheme.primary.withOpacity(0.0)
Theme.of(context).colorScheme.primary.withValues(alpha: 0.3),
Theme.of(context).colorScheme.primary.withValues(alpha: 0.0)
],
begin: Alignment.bottomCenter,
end: Alignment.topCenter,
Expand Down Expand Up @@ -81,7 +81,7 @@ class Chart extends StatelessWidget {
: Theme.of(context)
.colorScheme
.primary
.withOpacity(0.7),
.withValues(alpha: 0.7),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ChartBar extends StatelessWidget {
const BorderRadius.vertical(top: Radius.circular(8)),
color: isDarkMode
? Theme.of(context).colorScheme.secondary
: Theme.of(context).colorScheme.primary.withOpacity(0.65),
: Theme.of(context).colorScheme.primary.withValues(alpha: 0.65),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ExpensesList extends StatelessWidget {
itemBuilder: (ctx, index) => Dismissible(
key: ValueKey(expenses[index]),
background: Container(
color: Theme.of(context).colorScheme.error.withOpacity(0.75),
color: Theme.of(context).colorScheme.error.withValues(alpha: 0.75),
margin: EdgeInsets.symmetric(
horizontal: Theme.of(context).cardTheme.margin!.horizontal,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class Chart extends StatelessWidget {
borderRadius: BorderRadius.circular(8),
gradient: LinearGradient(
colors: [
Theme.of(context).colorScheme.primary.withOpacity(0.3),
Theme.of(context).colorScheme.primary.withOpacity(0.0)
Theme.of(context).colorScheme.primary.withValues(alpha: 0.3),
Theme.of(context).colorScheme.primary.withValues(alpha: 0.0)
],
begin: Alignment.bottomCenter,
end: Alignment.topCenter,
Expand Down Expand Up @@ -81,7 +81,7 @@ class Chart extends StatelessWidget {
: Theme.of(context)
.colorScheme
.primary
.withOpacity(0.7),
.withValues(alpha: 0.7),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ChartBar extends StatelessWidget {
const BorderRadius.vertical(top: Radius.circular(8)),
color: isDarkMode
? Theme.of(context).colorScheme.secondary
: Theme.of(context).colorScheme.primary.withOpacity(0.65),
: Theme.of(context).colorScheme.primary.withValues(alpha: 0.65),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ExpensesList extends StatelessWidget {
itemBuilder: (ctx, index) => Dismissible(
key: ValueKey(expenses[index]),
background: Container(
color: Theme.of(context).colorScheme.error.withOpacity(0.75),
color: Theme.of(context).colorScheme.error.withValues(alpha: 0.75),
margin: EdgeInsets.symmetric(
horizontal: Theme.of(context).cardTheme.margin!.horizontal,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class Chart extends StatelessWidget {
borderRadius: BorderRadius.circular(8),
gradient: LinearGradient(
colors: [
Theme.of(context).colorScheme.primary.withOpacity(0.3),
Theme.of(context).colorScheme.primary.withOpacity(0.0)
Theme.of(context).colorScheme.primary.withValues(alpha: 0.3),
Theme.of(context).colorScheme.primary.withValues(alpha: 0.0)
],
begin: Alignment.bottomCenter,
end: Alignment.topCenter,
Expand Down Expand Up @@ -81,7 +81,7 @@ class Chart extends StatelessWidget {
: Theme.of(context)
.colorScheme
.primary
.withOpacity(0.7),
.withValues(alpha: 0.7),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ChartBar extends StatelessWidget {
const BorderRadius.vertical(top: Radius.circular(8)),
color: isDarkMode
? Theme.of(context).colorScheme.secondary
: Theme.of(context).colorScheme.primary.withOpacity(0.65),
: Theme.of(context).colorScheme.primary.withValues(alpha: 0.65),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ExpensesList extends StatelessWidget {
itemBuilder: (ctx, index) => Dismissible(
key: ValueKey(expenses[index]),
background: Container(
color: Theme.of(context).colorScheme.error.withOpacity(0.75),
color: Theme.of(context).colorScheme.error.withValues(alpha: 0.75),
margin: EdgeInsets.symmetric(
horizontal: Theme.of(context).cardTheme.margin!.horizontal,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class Chart extends StatelessWidget {
borderRadius: BorderRadius.circular(8),
gradient: LinearGradient(
colors: [
Theme.of(context).colorScheme.primary.withOpacity(0.3),
Theme.of(context).colorScheme.primary.withOpacity(0.0)
Theme.of(context).colorScheme.primary.withValues(alpha: 0.3),
Theme.of(context).colorScheme.primary.withValues(alpha: 0.0)
],
begin: Alignment.bottomCenter,
end: Alignment.topCenter,
Expand Down Expand Up @@ -81,7 +81,7 @@ class Chart extends StatelessWidget {
: Theme.of(context)
.colorScheme
.primary
.withOpacity(0.7),
.withValues(alpha: 0.7),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ChartBar extends StatelessWidget {
const BorderRadius.vertical(top: Radius.circular(8)),
color: isDarkMode
? Theme.of(context).colorScheme.secondary
: Theme.of(context).colorScheme.primary.withOpacity(0.65),
: Theme.of(context).colorScheme.primary.withValues(alpha: 0.65),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ExpensesList extends StatelessWidget {
itemBuilder: (ctx, index) => Dismissible(
key: ValueKey(expenses[index]),
background: Container(
color: Theme.of(context).colorScheme.error.withOpacity(0.75),
color: Theme.of(context).colorScheme.error.withValues(alpha: 0.75),
margin: EdgeInsets.symmetric(
horizontal: Theme.of(context).cardTheme.margin!.horizontal,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class Chart extends StatelessWidget {
borderRadius: BorderRadius.circular(8),
gradient: LinearGradient(
colors: [
Theme.of(context).colorScheme.primary.withOpacity(0.3),
Theme.of(context).colorScheme.primary.withOpacity(0.0)
Theme.of(context).colorScheme.primary.withValues(alpha: 0.3),
Theme.of(context).colorScheme.primary.withValues(alpha: 0.0)
],
begin: Alignment.bottomCenter,
end: Alignment.topCenter,
Expand Down Expand Up @@ -81,7 +81,7 @@ class Chart extends StatelessWidget {
: Theme.of(context)
.colorScheme
.primary
.withOpacity(0.7),
.withValues(alpha: 0.7),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ChartBar extends StatelessWidget {
const BorderRadius.vertical(top: Radius.circular(8)),
color: isDarkMode
? Theme.of(context).colorScheme.secondary
: Theme.of(context).colorScheme.primary.withOpacity(0.65),
: Theme.of(context).colorScheme.primary.withValues(alpha: 0.65),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ExpensesList extends StatelessWidget {
itemBuilder: (ctx, index) => Dismissible(
key: ValueKey(expenses[index]),
background: Container(
color: Theme.of(context).colorScheme.error.withOpacity(0.75),
color: Theme.of(context).colorScheme.error.withValues(alpha: 0.75),
margin: EdgeInsets.symmetric(
horizontal: Theme.of(context).cardTheme.margin!.horizontal,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ class CategoryGridItem extends StatelessWidget {
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [
category.color.withOpacity(0.55),
category.color.withOpacity(0.9),
category.color.withValues(alpha: 0.55),
category.color.withValues(alpha: 0.9),
],
begin: Alignment.topLeft,
end: Alignment.bottomRight,
)),
child: Text(
category.title,
style: Theme.of(context).textTheme.titleLarge!.copyWith(
color: Theme.of(context).colorScheme.onBackground,
color: Theme.of(context).colorScheme.onSurface,
),
),
);
Expand Down
Loading