Skip to content

Instantly share code, notes, and snippets.

View okelloEnos's full-sized avatar
🎯
Focusing on Mastery

Okello Enos okelloEnos

🎯
Focusing on Mastery
View GitHub Profile
@okelloEnos
okelloEnos / county_selection.dart
Created August 1, 2022 06:38
A screen that can capture fields depending on previous selected item using dropdown field and fetching from api request. e.g You have to select a County before having the ability to select a Sub County in Kenya
import 'dart:io';
import 'package:dio/dio.dart';
import 'package:flutter/material.dart';
import 'package:maisha_loan/model/location_info.dart';
import 'package:maisha_loan/resources/dio_exceptions.dart';
import 'package:maisha_loan/resources/values.dart';
class CountrySelection extends StatefulWidget {
const CountrySelection({Key? key}) : super(key: key);