Skip to content

Commit

Permalink
change touch_indicator to circle
Browse files Browse the repository at this point in the history
  • Loading branch information
GravityDarkLab committed Feb 7, 2024
1 parent c1c0bad commit bb12489
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,24 @@ class App extends ConsumerWidget {
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
builder: (context, child) => TouchIndicator(child: child!),
builder: (context, child) => TouchIndicator(
indicatorColor: Colors.blueAccent,
indicator: Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.blueAccent.withOpacity(0.3),
),
child: Center(
child: Icon(
Icons.circle_rounded,
size: 40.0,
color: Colors.blueAccent.withOpacity(0.3),)
),
),
indicatorSize: 50.0,
forceInReleaseMode: true,
child: child!,
),
supportedLocales: L10n.all,
locale: Locale(UserPreferences.getLanguage()),
theme: appTheme,
Expand Down

0 comments on commit bb12489

Please sign in to comment.