1
0
mirror of https://github.com/git-touch/git-touch synced 2025-01-09 22:33:28 +01:00
git-touch-android-ios-app/lib/widgets/link.dart
2019-01-31 14:37:25 +08:00

27 lines
612 B
Dart

import 'package:flutter/material.dart';
import '../providers/settings.dart';
class Link extends StatelessWidget {
final Widget child;
final GestureTapCallback onTap;
Link({@required this.child, @required this.onTap});
@override
Widget build(BuildContext context) {
return Material(
child: Ink(
color: Colors.white,
child: InkWell(
splashColor:
SettingsProvider.of(context).layout == LayoutMap.cupertino
? Colors.transparent
: null,
onTap: onTap,
child: child,
),
),
);
}
}