Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

universities

this package allows you to search all universities in brazil.

usage

to use this plugin, add universities as a dependency in your pubspec.yaml file.

example

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

class selectpage extends statelesswidget {
  const selectpage({key? key}) : super(key: key);

  @override
  widget build(buildcontext context) {
    return scaffold(
      body: center(
        child: outlinedbutton(
            onpressed: () {
              navigator.push(
                context,
                materialpageroute(
                  builder: (context) => selectuniversity(
                    backbutton: true,
                    infobutton: true,

                    labeltext: "universidades",
                    hinttext: "insira o nome de sua universidade",
                    errortext: "universidade não encontrada!",

                    textformfieldcolor: colors.blue,
                    iconbackcolor: colors.deeppurpleaccent,
                    iconcollegecolor: colors.indigoaccent,
                    iconinfocolor: colors.deeppurpleaccent,

                    borderradius: 10.0,

                    onselect: (map response){
                      debugprint(response.tostring());
                    },
                  ),
                ),
              );
            },
          child: const text("search universities")),
      ),
    );
  }
}

onselect

the return of the onselect function is a map, containing all the data of the selected university..

{
"id": 1,
"full_name": "universidade federal de mato grosso",
"name": "ufmt",
"ibge": "5103403",
"city": "cuiaba",
"uf": "mt",
"zipcode": "78060900",
"street": "avenida fernando correa da costa",
"number": "2367",
"neighborhood": "boa esperança",
"phone": "(65) 3615 8302",
"created_at": "2020-08-30t02:50:17.000z",
"updated_at": "2020-11-27t18:40:06.000z"
}

api

api and documentation used in the code.

home:

https://api-universidades.vercel.app/

documentation:

https://documentacao-api-universidades.vercel.app/

license

copyright (c) 2021 gabriel patrick souza

permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “software”), to deal
in the software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the software, and to permit persons to whom the software is
furnished to do so, subject to the following conditions:

the above copyright notice and this permission notice shall be included in all
copies or substantial portions of the software.

the software is provided “as is”, without warranty of any kind, express or
implied, including but not limited to the warranties of merchantability,
fitness for a particular purpose and noninfringement. in no event shall the
authors or copyright holders be liable for any claim, damages or other
liability, whether in an action of contract, tort or otherwise, arising from,
out of or in connection with the software or the use or other dealings in the
software.


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.