Skip to main content

nepal_address_flutter 0.1.0 copy "nepal_address_flutter: ^0.1.0" to clipboard
nepal_address_flutter: ^0.1.0 copied to clipboard

Flutter UI widgets and form fields for cascading Nepal province, district, local level, and ward selection with bilingual support.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'tabs/data_info_tab.dart';
import 'tabs/dropdowns_tab.dart';
import 'tabs/form_tab.dart';
import 'tabs/search_tab.dart';

void main() {
  runApp(const NepalAddressExampleApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Nepal Address Flutter Example',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.indigo),
        useMaterial3: true,
      ),
      home: const ExampleHomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      length: 4,
      child: Scaffold(
        appBar: AppBar(
          title: const Text('Nepal Address Example'),
          bottom: const TabBar(
            isScrollable: false,
            tabs: [
              Tab(icon: Icon(Icons.edit_note), text: 'Address Form'),
              Tab(icon: Icon(Icons.arrow_drop_down_circle), text: 'Dropdowns'),
              Tab(icon: Icon(Icons.search), text: 'Search'),
              Tab(icon: Icon(Icons.info), text: 'Data Info'),
            ],
          ),
        ),
        body: const TabBarView(
          children: [FormTab(), DropdownsTab(), SearchTab(), DataInfoTab()],
        ),
      ),
    );
  }
}
2
likes
0
points
0
downloads

Publisher

verified publisherpratikkattel.com.np

Weekly Downloads

Flutter UI widgets and form fields for cascading Nepal province, district, local level, and ward selection with bilingual support.

Repository (GitHub)
View/report issues

Topics

#nepal #address #form #dropdown #widget

License

unknown (license)

Dependencies

flutter, nepal_address

More

Packages that depend on nepal_address_flutter