Skip to content

Commit

Permalink
refactor(material): use proper MaterialType.transparency (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertms10 committed Dec 24, 2021
1 parent f43ddf1 commit b0e346e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion lib/widgets/booking/bookings_table.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class BookingsTable extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Material(
color: Colors.transparent,
type: MaterialType.transparency,
child: LayoutBuilder(
builder: (context, constraints) {
return Stack(
Expand Down
40 changes: 20 additions & 20 deletions lib/widgets/layout/day_navigation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,28 @@ class DayNavigation extends StatelessWidget {
onPressed: () => dayHandler.changeToNow(),
child: Text(appLocalizations.today),
),
ClipRRect(
borderRadius: const BorderRadius.all(Radius.circular(24.0)),
child: Material(
child: IconButton(
onPressed: dayHandler.hasPreviousDay
? () => dayHandler.changeToPreviousDay()
: null,
icon: const Icon(Icons.chevron_left),
tooltip: appLocalizations.previousDay,
),
Material(
type: MaterialType.transparency,
clipBehavior: Clip.antiAlias,
shape: const CircleBorder(),
child: IconButton(
onPressed: dayHandler.hasPreviousDay
? () => dayHandler.changeToPreviousDay()
: null,
icon: const Icon(Icons.chevron_left),
tooltip: appLocalizations.previousDay,
),
),
ClipRRect(
borderRadius: const BorderRadius.all(Radius.circular(24.0)),
child: Material(
child: IconButton(
onPressed: dayHandler.hasNextDay
? () => dayHandler.changeToNextDay()
: null,
icon: const Icon(Icons.chevron_right),
tooltip: appLocalizations.nextDay,
),
Material(
type: MaterialType.transparency,
clipBehavior: Clip.antiAlias,
shape: const CircleBorder(),
child: IconButton(
onPressed: dayHandler.hasNextDay
? () => dayHandler.changeToNextDay()
: null,
icon: const Icon(Icons.chevron_right),
tooltip: appLocalizations.nextDay,
),
),
const SizedBox(width: 8.0),
Expand Down

0 comments on commit b0e346e

Please sign in to comment.