flutter_adaptive 3.0.0 copy "flutter_adaptive: ^3.0.0" to clipboard
flutter_adaptive: ^3.0.0 copied to clipboard

discontinued
outdated

A series of widgets and utilities that adapt to the current platform.

example/main.dart

import 'package:adaptive_icons/adaptive_icons.dart';
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(AdaptiveIcons(context).info),
            title: const Text('About'),
            onTap: () => showAboutDialog(context: context),
          ),
        ]),
      ),
    );
  }
}