extensions_pro 1.0.32 copy "extensions_pro: ^1.0.32" to clipboard
extensions_pro: ^1.0.32 copied to clipboard

Extensions Pro simplifies your development process, making it faster and more efficient.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Extensions Pro',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        useMaterial3: true,
        colorScheme: ColorScheme.fromSeed(
          seedColor: const Color(0xFF6750A4),
        ),
      ),
      home: const HomeScreen(),
      routes: {
        '/demo-named': (_) => const NamedRouteDemoPage(),
      },
    );
  }
}

class NamedRouteDemoPage extends StatelessWidget {
  const NamedRouteDemoPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: const Color(0xFF6A1B9A),
        foregroundColor: Colors.white,
        title: const Text('Named Route'),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            const Icon(Icons.route_outlined, size: 64, color: Color(0xFF6A1B9A)),
            const SizedBox(height: 16),
            const Text('Reached via context.pushNamed()', style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold)),
            const SizedBox(height: 24),
            OutlinedButton.icon(
              onPressed: () => Navigator.of(context).pop(),
              icon: const Icon(Icons.arrow_back),
              label: const Text('Go back'),
            ),
          ],
        ),
      ),
    );
  }
}
2
likes
150
points
161
downloads
screenshot

Documentation

API reference

Publisher

verified publishersanjaysharma.info

Weekly Downloads

Extensions Pro simplifies your development process, making it faster and more efficient.

Repository (GitHub)
View/report issues

Topics

#extensions #utilities #widget #datetime #validation

Funding

Consider supporting this project:

buymeacoffee.com

License

BSD-3-Clause (license)

Dependencies

cached_network_image, flutter, intl

More

Packages that depend on extensions_pro