Skip to main content

Hyperlink

Hyperlink is similar to TextButton but without padding and have an underline by default.

hyperlink overview

Example

import 'package:flutter/material.dart';
import 'package:saber_flutter_ui/saber_flutter_ui.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);

static const String _title = 'IconButtons Code Example';


Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text(_title)),
body: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [HyperLink('Click me', onTap: () {})],
),
)),
);
}
}