flutter_adaptive 2.0.1 flutter_adaptive: ^2.0.1 copied to clipboard
A series of widgets and utilities that adapt to the current platform.
import 'package:flutter/material.dart';
import 'package:flutter_adaptive/flutter_adaptive.dart' as adaptive;
class App extends StatelessWidget {
const App({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return adaptive.Route(
title: 'App',
child: SliverList(
delegate: SliverChildListDelegate([
adaptive.ListTile(
leading: Icon(adaptive.Icons.info(context)),
title: const Text('About'),
onTap: () => showAboutDialog(context: context),
),
]),
),
);
}
}