diff --git a/lib/LastNames.dart b/lib/LastNames.dart new file mode 100644 index 0000000..d8266c5 --- /dev/null +++ b/lib/LastNames.dart @@ -0,0 +1,2597 @@ +import 'dart:core'; +import 'dart:math'; + +import 'package:flutter/material.dart'; + +enum LastNames { + Aabye, + Aarde, + Aaron, + Abair, + Abattoir, + Abbal, + Abbey, + Abbot, + Abbott, + Abdallah, + Abel, + Abernathy, + Abernethy, + Abeyante, + Abilene, + Abismo, + Aboma, + Abonwood, + Aboubakar, + Abraham, + Abrahams, + Abrahamson, + Abramovic, + Anatine, + Anatra, + Anaya, + Anbinder, + Andalso, + Andel, + Andersen, + Anderson, + Anderton, + Andolini, + Andrade, + Andree, + Andreessen, + Andretti, + Andrew, + Andrews, + Andric, + Angel, + Angelo, + Angelot, + Angelus, + Angkarn, + Anna, + Annamemnon, + Annenberg, + Ansaldo, + Ansar, + Ansari, + Ansett, + Ansia, + Ansome, + Antelope, + Antfarm, + Anthony, + Antiesse, + Antler, + Anton, + Antonelli, + Antonioni, + Antorian, + Antwerp, + Anubis, + Anvil, + Anwyl, + Anza, + Anzac, + Aoi, + AOL, + Aonifall, + Apfelbaum, + Aphrodite, + Apocalypse, + Apogee, + Apollo, + Appalachia, + Apparatchik, + Appin, + Apple, + Appleby, + Applemoor, + Appletor, + Applewhyte, + Apps, + Aprendiz, + AprilFool, + Aquacade, + Aquila, + Aquitaine, + Arabello, + Arad, + Arado, + Aragon, + Arai, + Arandur, + Arashi, + Aravalli, + Araw, + Arbenlow, + Arbizu, + Arbuckle, + Arbusto, + Arcadia, + Arcana, + Archer, + Arctor, + Ard, + Arellano, + Arencibia, + Arends, + Arentire, + Ares, + Argonaut, + Arguello, + Argus, + Aria, + Ariantho, + Arias, + Arida, + Aridian, + Ariel, + Aries, + Aristocarnas, + Aristocrat, + Arizona, + Arkin, + Arkright, + Arlington, + Arliss, + Armani, + Armastus, + Armendariz, + Armidi, + Armistice, + Armitage, + Armstrong, + Armundsen, + Arna, + Arnahan, + Arnaz, + Arnica, + Arnold, + Arnot, + Arnott, + Aronowicz, + Arouliad, + Arredondo, + Arriaga, + Arrighi, + Arrington, + Arrow, + Arrowmint, + Arroyo, + Arsenault, + Artaud, + Artemesia, + Arten, + Artful, + Arthur, + Artis, + Artizar, + Artness, + Arun, + Arunian, + Asadar, + Asalia, + Asamoah, + Asano, + Asbrink, + Ascot, + Ash, + Ashbourne, + Ashby, + Ashdene, + Ashland, + Ashley, + Ashmoot, + Ashton, + ASIMO, + Aska, + Askari, + Askew, + Askham, + Asp, + Assia, + Aster, + Asteria, + Astermann, + Astonia, + Astro, + Asturias, + Asylum, + Aszkenaze, + Atansoff, + Athens, + Atheria, + ATI, + Atisso, + Atkey, + Atkins, + Atkinson, + Atlanta, + Atlantis, + Atlas, + Atlass, + Atolia, + Attenborough, + Attila, + Attis, + Atwoo, + Au, + Aubin, + Aubos, + Aubret, + Aubriot, + Audebarn, + Audeburgh, + Audina, + Audion, + Audran, + Audurburgh, + Auebauch, + Auer, + Auerbach, + Auerbauch, + Aufrecht, + Augapfel, + Augenblick, + Augenblik, + Auggers, + Augustus, + Auk, + Aulder, + Aumenie, + Aumoitte, + Aunerfal, + Aura, + Aurbierre, + Aurelia, + Aurinko, + Auroline, + Aurotharius, + Auster, + Austin, + Austinmer, + Austris, + Austrone, + Autodesk, + Autopoiesis, + Auxarmes, + Auxifur, + Avalanche, + Avalira, + Avary, + AvaStar, + Avedon, + Avelino, + Average, + Avery, + Aviatik, + Aviator, + Avila, + Avindar, + Avis, + Avium, + AvivaUK, + Avon, + Avonside, + Avora, + Avril, + Avro, + Axel, + Axelbrad, + Axelrad, + Axon, + Ay, + Aya, + Ayakashi, + Ayala, + Ayashi, + Aycliffe, + Berry, + Bert, + Berthold, + Bertolucci, + Bertone, + Bertrand, + Berwick, + Berzin, + Bessie, + Best, + Bestijl, + Betelus, + Bethune, + Betsen, + Bettencourt, + Betteridge, + Betts, + Beurling, + Beverly, + Beyaz, + Bezner, + Bhalti, + Bialyk, + Bian, + Bianco, + Biberman, + Biddle, + Biedermann, + Biegeleisen, + Bieler, + Bienenstich, + Bienstock, + Bigbear, + Bigboots, + Bigdipper, + Damiano, + Damone, + Damour, + Dana, + Dancer, + Dangle, + Danick, + Daniel, + Daniels, + Danitz, + Dankner, + Dannitza, + Dannunzio, + Danton, + Danube, + Dapto, + Daralia, + Darby, + Darbyshire, + Darcy, + Darden, + Darkbyrd, + Darkes, + Darkfire, + Darkfold, + Darkfury, + Darkheart, + Darkholme, + Darkmatter, + Darkrose, + Darkspider, + Darkstone, + Darkthief, + Darkthorn, + Darkward, + Darkwatch, + Darkwyr, + Darlandes, + Darling, + Darmoset, + Darnay, + Darnell, + Darracq, + Darragh, + Darrest, + Darrow, + Dartmouth, + Darwin, + Darwinian, + Dash, + Dashrix, + Dashuria, + DaSilva, + Dasmijn, + Dassin, + Dastardly, + Dasyurid, + Datura, + Daugherty, + Daumig, + Davenport, + Davi, + Daviau, + David, + Davidov, + Davidovasic, + Davids, + Davidson, + DavidStern, + Davies, + Davila, + Davis, + Davison, + Davonius, + Davros, + Dawes, + Dawg, + Dawid, + Dawkins, + Dawlish, + Dawn, + Dawner, + Dawodu, + Dawson, + Daxeline, + Daxter, + Day, + Dayafter, + Daylight, + Daysleeper, + Dayton, + Dazy, + Deadlight, + Deakins, + Deal, + Dean, + DeAnda, + Deanimator, + Debbel, + Debevec, + Debruyere, + Debs, + Decatur, + Deceit, + December, + Dechou, + Dechtar, + Deckard, + Decker, + Decosta, + DeCuir, + Decycla, + Deed, + Deemster, + Deepdene, + Deere, + Deerhunter, + Deezul, + DeFarge, + Defiant, + Defroig, + DeGroot, + Deharo, + Deigan, + Deimatov, + Deiqao, + Deir, + Deischer, + Dejavu, + Deka, + Delacroix, + Delacruz, + Delaid, + deLane, + Delaney, + Delarosa, + Delaunay, + Delbonnel, + Delcon, + Delebat, + Delec, + Deledda, + Deleon, + Delgado, + Delicioso, + Delight, + Dell, + Delling, + Deloitte, + Delong, + Delorean, + Delpaso, + Delphin, + Delphis, + Delpiaz, + Deluca, + Deluxe, + Delvalle, + Delvecchio, + Delwood, + Demain, + Demar, + Dembo, + Demen, + Dementulo, + Demina, + Demme, + Demo, + Democracy, + Demonge, + Demonia, + Demonista, + Demonpaws, + Demontrond, + Demozay, + Fazuku, + Fearguis, + Fearne, + Fearsum, + Feaver, + Feden, + Federal, + Federko, + Federschneider, + Fegte, + Fehr, + Fei, + Feichholz, + Feigenblatt, + Feila, + Feingold, + Feintuch, + Feiri, + Felberbaum, + Feld, + Feldman, + Feldmann, + Feldragonne, + Feldsperling, + Felicci, + Feliciano, + Felisimo, + Felix, + Fell, + Feller, + Fellgarber, + Fellini, + Fellstein, + Felton, + Felwitch, + Femto, + Feng, + Fenix, + Fensen, + Fenstalker, + Fenton, + Fenua, + Fenutzini, + Fenwitch, + Ferber, + Ferd, + Ferdinand, + Ferduccio, + Ferengeto, + Fereszki, + Ferguson, + Ferina, + Feriszke, + Ferlinghetti, + Fermi, + Fernandez, + Ferranti, + Ferraris, + Ferreira, + Ferrell, + Ferrentino, + Ferrer, + Ferris, + Ferryhill, + Fessbeinder, + Fetid, + Fetiocci, + Fetisov, + Fetuccio, + Feuerstein, + Feuilles, + Few, + Fhang, + Fhloston, + FiatBrasil, + FICSIT, + Fiddlesticks, + Fidelity, + Field, + Fielding, + Fields, + Fierenza, + Fierrens, + Fiertze, + Fieschi, + Fieseler, + Figaro, + Figgis, + FIGMENTsl, + Figtree, + Figueroa, + Filenxa, + Fillion, + FilsAime, + Filth, + Fimicoloud, + Finch, + Finchy, + Finesmith, + Fingerpin, + Finisra, + Finistair, + Fink, + Finkel, + Finkelstein, + Finkelsztein, + Finkler, + Finl, + Finlayson, + Finley, + Finn, + Finney, + Finsbury, + Finucane, + Firanelli, + Firebrand, + Firecaster, + Firecloak, + Firefly, + Firegrave, + Fireguard, + Firehawk, + Firelight, + Firelyte, + Firethorn, + Firlan, + Fischer, + Fischgall, + Fischgold, + Fischhof, + Fish, + Fisher, + Fishnet, + Fiske, + Fisseux, + Fiszer, + Fiszgold, + Fitch, + Fittinger, + Fitzcarraldo, + Fitzgerald, + Fitzhugh, + Fitzpatrick, + Fitzroy, + Fitzsimmons, + Fiul, + Fizgig, + Fizir, + Fizz, + Fizzle, + Flagon, + Flagstaff, + Flaks, + Flaman, + Flamand, + Flan, + Flanagan, + Flanders, + Flannery, + Flare, + Flaschen, + Flasheart, + Flashpoint, + Flatley, + Flax, + Fleischfarb, + Fleischhacker, + Fleischhaker, + Fleiszfarb, + Fleming, + Fletcher, + Fleury, + Flieg, + Flimflam, + Flinders, + Flinker, + Flint, + Flintlock, + Flintoff, + Float, + Flood, + Flora, + Flores, + Floresby, + Florian, + Florio, + Flossberg, + Flotta, + Flow, + Flower, + Flowers, + Floyd, + Fluffball, + Fluffpaw, + Fluffy, + Flugelmann, + Fluno, + Flute, + Flux, + Flyer, + Flynn, + Flytrap, + Foden, + Foehammer, + Foggarty, + Foil, + Fold, + Folds, + Foley, + Folger, + Folland, + Follet, + Folsom, + Fonck, + Fonda, + Fontaine, + Fontenot, + Fonzarelli, + Foo, + Food, + Foodiboo, + Fool, + Foote, + Footman, + Footpad, + Forager, + Forbes, + Forcella, + Forder, + Foreman, + Foresight, + Forester, + Forgraine, + Forhilde, + Forman, + Formosa, + Forrest, + Forster, + Forsythe, + Fortas, + Forte, + Forti, + Fortitude, + Fortune, + Forwzy, + Forzane, + Foss, + Fosse, + Fossett, + Fossil, + Foster, + Fotherington, + Foton, + Foulon, + Foulsbane, + Fountain, + Fouquet, + Fourneau, + Fournier, + Fouroux, + Fouts, + Fowler, + Fox, + Foxchase, + Foxclaw, + Foxdale, + Foxglove, + Foxley, + Foxpaws, + Foxtrot, + Foyston, + Frabersham, + Frachtenberg, + Fraenkel, + Fraggle, + Fragilis, + Fragonard, + Fraina, + Fraisse, + Frak, + Fraker, + Fraktul, + Frakture, + Fralto, + Frampton, + Franchini, + Franciosa, + Francis, + Franco, + Francois, + Francoz, + Frandevoel, + Frangible, + Frangilli, + Franizzi, + Frank, + Frankel, + Frankfurter, + Franklin, + Franks, + Frankton, + Frantisek, + Franzos, + Frascati, + Fraser, + Fratica, + Frauenglaz, + Fravoisse, + Fraxinus, + Fray, + Frazer, + Frazier, + Freck, + Frederick, + Fredericks, + Frederix, + Fredrickson, + Fredriksson, + Freeloader, + Horsforth, + Horsley, + Horten, + Horton, + Horus, + Horwitz, + Hosho, + Hoskins, + Hosoi, + Hotaling, + Hotger, + Hotshot, + Houley, + House, + Houser, + Houston, + Howard, + Howe, + Howell, + Howey, + Howitt, + Howl, + Howlett, + Howley, + Howton, + Hoxley, + Hoyer, + Hoyes, + Hoyt, + Hrachov, + HSBC, + Hua, + Huang, + Hubbard, + Hubbenfluff, + Hubble, + Huber, + Huckleberry, + Huddleston, + Hudson, + Huerta, + Huet, + Huff, + Huffhines, + Huffman, + Huggins, + Hughes, + Hugo, + Hui, + Huillermeyer, + Huish, + Hula, + Huldschinsky, + Hulka, + Hull, + Hullabaloo, + Hultcrantz, + Humbridge, + Humbug, + Humburg, + Humby, + Hummingly, + Humphrey, + Humphreys, + Hunchke, + Huncke, + Hunghi, + Hunniton, + Hunt, + Hunter, + Huntress, + Huntsman, + Hurd, + Hurikan, + Hurley, + Hurnung, + Hurricane, + Hurst, + Hurt, + Husar, + Husbando, + Hush, + Huskerdu, + Husky, + Huszar, + Hutchence, + Hutchins, + Hutchinson, + Hutchison, + Hutson, + Hutton, + Huxxely, + Huygens, + Huynh, + Hwasung, + Hyacinth, + Hyandi, + Hyde, + Hydraconis, + Hye, + Hykova, + Hyland, + Hynes, + Hyun, + Hyx, + HzO, + Iadyl, + Iali, + Ianem, + Iasmertz, + Ibanez, + Ibarra, + Ibbetson, + IBM, + Ibor, + Icanadi, + Iceberg, + Icechant, + Iceghost, + Ichibara, + Ichigo, + Ichtama, + Icthan, + Ida, + Iddinja, + Ideator, + Idesma, + Idigo, + Idlemind, + Idler, + Idora, + Idyll, + Idziak, + Igaly, + Iger, + Igeria, + Ihnen, + Ikarus, + Ikazuchi, + Ikura, + Ilargia, + Ildor, + Ilex, + Ilioki, + Illios, + Illyar, + Ilo, + Ilqamar, + Ilsker, + Ilwicht, + Ilyx, + Imako, + Imari, + Immelmann, + ImmersiveWorkspaces, + Impfondo, + Implo, + Imtiaz, + Inada, + Inaka, + Incognito, + Independent, + India, + Indiawood, + Indigo, + Infinity, + Ingersoll, + Inglewood, + Inglis, + Ingmann, + Ingraham, + Ingram, + Ingrassia, + INGRenaultF1Team, + Ingwer, + Inkpen, + Inman, + Inniatzo, + Innis, + Innovia, + Inoue, + InSeltra, + Inshan, + Insippo, + Insoo, + Intel, + IntelEmbedded, + Interflug, + Intermenos, + Intikhab, + Inventor, + Invincible, + Iramesius, + Irata, + Iredell, + Iredia, + Ireland, + Irelund, + Ireman, + Ireport, + Ireto, + Ireton, + Iridescent, + Irling, + Ironclad, + Irvin, + Irvine, + Irving, + Irwin, + Isa, + Isaac, + Isabella, + Isachenko, + Isan, + Isbell, + Isenia, + Ishelwood, + Ishii, + Ishmene, + Ishnoo, + Ishtari, + ISID, + Iskast, + Iskirra, + Islander, + Islar, + Islay, + Isobar, + Isodo, + Istmal, + Itamae, + Itano, + ITE, + Ito, + Itokawa, + Itoku, + Iuga, + Ivanova, + Ivanovic, + Ivercourt, + Ivey, + IveyLeague, + Ivory, + Ivorymage, + Ivylord, + Iwashi, + Iwish, + IWOOT, + Ixchel, + Ixito, + Ixtab, + Ixtar, + Ixxel, + Izumi, + Izutsu, + Jack, + Jackalope, + Jackman, + Jacks, + Jackson, + Jacob, + Jacobs, + Jacobsen, + Jacobson, + Jacobus, + Jacques, + Jade, + Jae, + Jaecies, + Jaehun, + Jael, + Jaerls, + Jaggernov, + Jaidov, + Jakob, + Jamaluz, + Jamberoo, + James, + Jameson, + Jamison, + Jamkarta, + Jampoler, + Jampuler, + Jang, + Janic, + Janick, + Janitor, + Jannings, + Jano, + Jansen, + JanskyVWC, + Jansma, + Jantzen, + Janus, + Japiri, + Jaramillo, + Jardberg, + Jariczower, + Jarman, + Jarmillo, + Jarnhilde, + Jarrett, + Jarrico, + Jarvinen, + Jarvis, + Jaryczower, + Jashan, + Jasper, + Jassen, + Jatho, + Javelin, + Jawetz, + Jaworower, + Jaxa, + Jaxxon, + Jay, + Jayaram, + Jaynesford, + Jazzhands, + JCKL, + Jean, + Jeansia, + Jeces, + Jecies, + Jeczes, + Jedburgh, + Jeegoo, + Jefes, + Jeffers, + Jefferson, + Jeffries, + Jegolnicer, + Jegolnitzer, + Jehangir, + Jejces, + Jejcies, + Jelasco, + Jenipe, + Jenkins, + Jennings, + Jenns, + Jensen, + Jenvieve, + Jeriamas, + Jericho, + Jernigan, + Jerrold, + Jeruben, + Jervil, + Jessop, + Jester, + Jestyr, + Jetaime, + Jetcity, + Jevon, + Jewel, + Jewell, + Jezebel, + Jhamin, + Jharls, + Jiadom, + Jiagu, + Jiang, + Jibilla, + Jie, + Jierdon, + Jiersen, + Jiewen, + Jigsaw, + Jillybean, + Jimador, + Jimenez, + Jiminy, + Jinglepaw, + Jinn, + Jinx, + Jinxing, + Jiong, + Jishnu, + Jiuhong, + Jiutai, + Lageos, + Lagerkvist, + Lagerlof, + Lagodadaly, + LaGrassa, + Laguna, + Lahtinen, + Lahtoh, + Laird, + Lake, + Laks, + Laloix, + Lalonde, + Lam, + Lamar, + Lamatia, + Lamb, + Lambeau, + Lambert, + Lamede, + Lament, + Lameth, + Lamilton, + Lamington, + Laminsk, + Lamonica, + Lamont, + LAmoreaux, + Lamourfou, + Lamplight, + Lamplugh, + Lanate, + Lancaster, + Lancrae, + Land, + Landar, + Landau, + Landers, + Landesbaum, + Landesberg, + Landfall, + Landis, + Landman, + Landmann, + Landry, + Landsmann, + Lane, + Lanfier, + Lang, + Langdon, + Lange, + Langer, + Langford, + Langley, + Langsdorff, + Langset, + Langston, + Langstrumpf, + Languish, + Langwarrin, + Langway, + Lanier, + Lanley, + Lannock, + Lanzet, + Lanzius, + Lapalina, + Laperriere, + Lapis, + Lapointe, + Laprade, + Lara, + Laramide, + Lardack, + Lardner, + Larg, + Larimal, + Larimore, + Larix, + Larkham, + Larkin, + Larkspur, + Larnia, + Laroway, + LarrikinCMS, + Larsen, + Larson, + Larsson, + Larwyck, + Laryukov, + LaSalle, + Lasek, + Lashes, + Lassally, + Lassard, + Lassiter, + Lastchance, + Laszlo, + Later, + Latham, + Lathrop, + Latoe, + Latour, + Latrell, + Latte, + Latynina, + Latzo, + Laufer, + Laughton, + Launay, + Laurasia, + Lauren, + Laurent, + Lauria, + Lauridsen, + Laval, + Lavarock, + Lavecchia, + Lavendel, + Lavender, + Laville, + Laviolette, + Laviscu, + Lavochkin, + Lavradorio, + Law, + Lawksley, + Lawl, + Lawrence, + Laws, + Lawson, + Lax, + Laxness, + Lay, + Laysan, + Lazarno, + Lazuli, + LDollarSeller, + Le, + Leach, + Leader, + Leafblower, + Leakey, + Leal, + Leamouth, + Lean, + Leandros, + Lear, + Learner, + Leary, + Leavenworth, + Leavitt, + Lebed, + Leblanc, + Leborski, + Lecker, + Leckrone, + Leclerc, + Lectar, + Lecter, + Ledbetter, + Lederberg, + Ledevre, + Ledford, + Lednev, + Lee, + Leeder, + Leeeroy, + Leeming, + Lefavre, + LeFay, + Lefebvre, + Lefevre, + Leffen, + Lefko, + Legend, + Legien, + Legion, + Lehane, + Lehman, + Lehmann, + Lehrner, + Lehtovaara, + Lindbergh, + Linden, + Linderot, + Lindgren, + Lindley, + Lindman, + Lindsay, + Lindsey, + Lineker, + Madruga, + Madsen, + Madurta, + Madzuko, + Maeda, + Maelstrom, + Maersk, + Maertens, + Maesar, + Maestro, + Maeterlinck, + Magee, + Magellan, + Mager, + Maggiore, + Maggs, + Magic, + Maginot, + Magne, + Magneto, + Magnifico, + Magnolia, + Magojiro, + Magpie, + Mah, + Mahana, + Maher, + Mahfouz, + Mahina, + Mahogani, + Mahogany, + Mahoney, + Mahovlich, + Mai, + Maidstone, + Maiman, + Maimann, + Mainaky, + Maine, + Mainline, + Mainsail, + Maitland, + Majestic, + Major, + Makarov, + Maker, + Makira, + Maktoum, + Malachite, + Maladay, + Malan, + Malaprop, + Malaspina, + Maldonado, + Maldor, + Males, + Malheur, + Malibu, + Malice, + Malick, + Malies, + Malifozik, + Malik, + Malinow, + Malisotops, + Malko, + Malle, + Malone, + Maloney, + Malso, + Maltese, + Malthus, + Maltz, + Philter, + Phipps, + Phlox, + Phobos, + Phoenix, + Phydeau, + Piaggio, + Piancastellios, + Pianist, + Piccard, + Pichot, + Pick, + Pickens, + Picket, + Pickett, + Pickles, + Picnic, + Pico, + Piddock, + Pidgeon, + Pieck, + Pieczenik, + Piedpiper, + Piek, + Pienaar, + Pierce, + Pierre, + Pierrick, + Piers, + Pierson, + Pierterson, + Pierus, + Piggins, + Pikajuna, + Pike, + Pikholz, + Pikkara, + Pilipenko, + Pilote, + Pimpernel, + Pina, + Pinazzo, + Pinden, + Pineda, + Pinelli, + Ping, + Pinion, + Pink, + Pinkdot, + Pinkenba, + Pinkerton, + Pinklady, + Pinkney, + Pintak, + Pintens, + Piper, + Pippen, + Pippita, + Pirandello, + Piranha, + Pisarek, + Pitney, + Pitre, + Pitt, + Pittman, + Pitts, + Pivot, + Pixel, + Pixelmaid, + Pixie, + Pizzaro, + Pizzicato, + Placebo, + Plaid, + Planer, + PlanetAction, + Plante, + Plasker, + Plasma, + Plassitz, + Platini, + Plato, + Platt, + Platthy, + Platypus, + Platzel, + Platzman, + Platzmann, + Playahead, + Playfair, + Pleides, + Plessis, + Pletzel, + Plisskin, + Plodnaco, + Plotzel, + Plubeau, + Plumday, + Plummer, + Plunkett, + Pluto, + Plutonian, + Pluvences, + Plymouth, + Plympton, + PMS, + Pobieski, + Podhorzer, + Podipus, + Podless, + Podlum, + Podolsky, + Poe, + Pogelmann, + Poggel, + Pohoryles, + Pohorylles, + Pohryles, + Poida, + Poikolainen, + Poindexter, + Pointe, + Poitier, + Pokryshkin, + Polandia, + Polano, + Polanski, + Pole, + Polek, + Poleni, + Polgase, + Poliak, + Poliatevska, + Polik, + Polikarpov, + Polk, + Polke, + Polki, + Pollack, + Pollard, + Pollemis, + Pollock, + Polonsky, + Polydactyle, + Pomegranate, + Pomeray, + Pomfret, + Pomilio, + Ponce, + Pond, + Ponnier, + Ponsford, + Pontchartrain, + Pontecorvo, + PontiacGXP, + Ponticelli, + Pontiero, + Pontoppidan, + Pony, + Ponzu, + Pookes, + Pool, + Poole, + Pooley, + Pooraka, + Pootawn, + Pop, + Pope, + Poper, + Popinjay, + Poplin, + Popowicz, + Poppy, + Popstar, + Porchers, + Porta, + Portal, + Portello, + Porter, + Porterfield, + Porthos, + Portilo, + Portland, + Portocarrero, + Portola, + Portsmouth, + Posaner, + Posey, + Posner, + Post, + Posthorn, + Potato, + Potez, + Potkova, + Potluck, + Potter, + Potts, + Pottzen, + Potvin, + Poulot, + Poulter, + Poultry, + Poutine, + Pow, + Powell, + Powers, + Poza, + Praga, + Pralou, + Prantis, + Prasinos, + Prater, + Prather, + Prathivi, + Pratt, + Pravda, + Precz, + Preddy, + Preez, + Prefect, + Preis, + Preiss, + Preiz, + Preminger, + Prescott, + Presley, + Press, + Preston, + Prevost, + Price, + Pride, + Priestly, + Priestman, + Prieto, + Prim, + Primbee, + Primeau, + PrimeLab, + Primless, + Primrose, + Primsmith, + Primswitch, + Prince, + Princess, + Prinz, + Prior, + Pritchard, + Pritchett, + Pro, + Proctor, + ProductEngine, + professor, + Projects, + Pronovost, + Proost, + Prospero, + Protagonist, + Proto, + Prototype, + Proudfoot, + Proudhon, + Prudhomme, + Pruitt, + Prumier, + Prunes, + Pryor, + Przhevalsky, + Psaltery, + Ptomaine, + Pualhan, + Puchkina, + Puckett, + Puddlegum, + Puddles, + Pudles, + Pudless, + Puff, + Pugh, + Pugilist, + Puhakka, + Pulford, + Pulver, + Pumpkins, + Punchinello, + Pupik, + Purcell, + Pussycat, + Putnam, + Putzo, + PWSCC, + Pyara, + Pye, + Pyle, + Pyrithea, + Python, + Qargen, + Qariel, + Qarnac, + Qaven, + Qelmo, + Qendra, + Qi, + Qian, + Qidlow, + Qin, + Qinan, + Qissentell, + Qissinger, + Qoida, + Qork, + Quackenbush, + Quadrifoglio, + Quaggy, + Qualcar, + Qualia, + Quality, + Quamar, + Quan, + Quander, + Quandry, + Quar, + Quaranta, + Quaren, + Quarrian, + Quartermass, + Quartet, + Quartz, + Quasimodo, + Quatro, + Queen, + Queenstown, + Quelch, + Queler, + Queller, + Quellmalz, + Quentin, + Quercus, + Querilo, + Querrien, + Queso, + Questi, + Quick, + Quicksand, + Quihoxil, + Quijote, + Quillitch, + Quimby, + Quine, + Quingly, + Quinn, + Quinnell, + Quinones, + Quinote, + Quinsette, + Quintana, + Quintero, + Quintessa, + Quintus, + Quinzet, + Quirina, + Quirk, + Quirky, + Quisling, + Quixote, + Qunhua, + Quonset, + Quorzar, + Qusifor, + Qvetcher, + Ra, + Raabe, + Rabeni, + Rabinowicz, + Raccoon, + Racecourse, + Racer, + Rachman, + Rachmil, + Rachter, + Radek, + Radford, + Radikal, + Radiks, + Radinovic, + Radio, + Radium, + Radius, + Radmussen, + Rae, + Raffke, + Raffles, + Rage, + Ragged, + Raghilda, + Ragland, + Ragowski, + Ragu, + Rahja, + Rail, + Rain, + Rainbow, + Raine, + Raines, + Rainey, + Rainfall, + Rainforest, + Rainier, + Raito, + Rajal, + Rajesh, + Rakasta, + Rakels, + Rakosi, + Raleigh, + Ralior, + Rall, + Rallier, + Ramaty, + Rambler, + Ramer, + Ramey, + Ramir, + Ramirez, + Rammidge, + Ramona, + Ramos, + Rampal, + Ramsay, + Ramsey, + Rand, + Randall, + Randle, + Randolph, + Randt, + Randwick, + Rang, + Rangel, + Ranger, + Ranica, + Ranimo, + Ranimodo, + Rankin, + Ransford, + Ransom, + Rapisardi, + Rappaport, + Raremaster, + Rasa, + Rascon, + Rasikas, + Rasmuson, + Rasmussen, + Rasoir, + Rassir, + Rasteridge, + Ratelle, + Rathmullah, + Ratite, + Ratliff, + Ratner, + Rau, + Rauch, + Raven, + Ravenheart, + Ravenhurst, + Raveup, + Ravikumar, + Ravinelli, + Raviprakash, + Rawicz, + Rawley, + Ray, + Raygunn, + Raymaker, + Raymation, + Raymond, + Rayna, + Rayner, + Raynier, + Razor, + Razorfen, + RBS, + Reacher, + Read, + Real, + Reanimator, + Reardon, + Rearwin, + Reatequi, + Reaves, + Reavis, + Rebane, + Rebel, + Rebus, + Rechel, + Rechkalov, + Rechter, + Recreant, + RecycledName, + Redacted, + Redangel, + Reddevil, + Redenblack, + Redfield, + Redgrave, + Redhill, + Redinamus, + Redmond, + Redrose, + Redstar, + Redyard, + Ree, + Reece, + Reed, + Reeder, + Rees, + Reese, + Reeves, + Refenoir, + Regapi, + Regenbogen, + Regent, + Reggiane, + Regina, + Rehnquist, + Rehula, + Reich, + Reichman, + Reichmann, + Reid, + Reifsnider, + Reikaz, + Reilig, + Reilly, + Reina, + Reinard, + Reiner, + Reinerman, + Reinert, + Reino, + Reinoir, + Reinsch, + Reis, + Reisler, + Reisman, + Reiter, + Reitman, + Reitveld, + Rejected, + Rejkus, + Relait, + Release, + Relph, + Reluin, + Remblai, + Rembranch, + Rembrandt, + Remex, + Remsen, + Ren, + Renard, + Renaud, + Renaxor, + Rendelstein, + Rendelsztein, + Renegade, + Renfew, + Renfold, + Renfort, + Renierd, + Renilo, + Rennahan, + Rennebohm, + Renneville, + Renobaum, + Renoir, + Repine, + Replacement, + Replay, + Republic, + Requiem, + Resch, + Resident, + Resistance, + Resonance, + Restful, + Restless, + Restout, + Reuters, + Reuven, + Reve, + Revere, + Reverie, + Revestel, + Revnik, + Revolution, + Rewell, + Rexen, + Rexerzon, + Rexie, + Rexroth, + Reyer, + Reyes, + Reymont, + Reyna, + Reynaud, + Reynolds, + Rezillo, + Rhapsody, + Rhea, + Rheingold, + Rhiadra, + Rhiannyr, + Rhiano, + Rhino, + Rhoades, + Rhode, + Rhodes, + Rhosar, + Rhys, + Riaxik, + Ribble, + Ribeiro, + Ricantaur, + Ricardo, + Rice, + Rich, + Richard, + Richards, + Richardson, + Richelieu, + Richey, + Richez, + Richmond, + Richter, + Richthofen, + Rickena, + Rickenbacker, + Ricks, + Riddle, + Riddler, + Rident, + Riederer, + Riegler, + Rieko, + Riel, + Rigaud, + Riggles, + Riggs, + Riiser, + Rikichi, + Rikios, + Rikugun, + Riler, + Riley, + Rimbaud, + Ringgold, + Ringo, + Rinkitink, + Rinq, + Rioccan, + Rios, + Ripley, + Riptide, + Rishmal, + Ristow, + Ritchie, + Ritt, + Ritter, + Riva, + Rivas, + Rivera, + Rivers, + RiversRunRed, + Riverstone, + Riverview, + Rives, + Rizooto, + Rizzo, + Roach, + Roar, + Roark, + Robbiani, + Robbins, + Robenet, + Roberson, + Roberts, + Robertson, + Robespear, + Robinson, + Robison, + Robledo, + Robles, + Robonaught, + Robson, + Rocco, + Rocha, + Rochefort, + Rock, + Rockett, + Rockin, + Rockwell, + Rodas, + Roddenham, + Rodenberger, + Rodex, + Rodeyn, + Rodgers, + Rodinia, + Rodrigues, + Rodriguez, + Rodriquez, + Roe, + Roecastle, + Roelofs, + Roemer, + Roentgen, + Roeth, + Rofanui, + Roff, + Rofflecopter, + Roffo, + Rogan, + Rogers, + Rogozarski, + Rohini, + Roi, + Roizman, + Rojas, + Rojyo, + Rokocoko, + Roland, + Rolendis, + Rolland, + Rollins, + Rolls, + Roman, + Romanas, + Romano, + Romeo, + Romero, + Romo, + Romulus, + Ronas, + Rondelstein, + Rondelsztein, + Rongyu, + Ronin, + Ronmark, + Ronsein, + Ronwood, + Ronzales, + Ronzoni, + Tabor, + Tachikawa, + Tachor, + Tackett, + Tackleberry, + Tadanori, + Tadashiro, + Tae, + Taffeta, + Taffler, + Ugimachi, + UH, + UIdaho, + Ukrop, + Uladstron, + Uldarmann, + Ulderport, + Ulich, + Ullawaio, + Ullman, + Ulrik, + Ultsch, + Ulysses, + Umaga, + Umarov, + Umbarundu, + Umbram, + Umia, + Umino, + Umpqua, + Umusic, + Undamann, + Under, + Underall, + Underby, + Undercity, + Undercroft, + Underhill, + Underthorn, + Undertone, + Underwood, + Undset, + Unilever, + Unito, + Unknown, + Unplugged, + Unsung, + Unsustainable, + Unsworth, + Untermann, + Untermeyer, + Uphantis, + Upshaw, + Upsilon, + Ur, + Uralia, + Uram, + Uramen, + Urbanowicz, + Urdaneta, + Uresti, + Uritsky, + Uriza, + Urnestone, + Urnst, + Urqhart, + Urquan, + Urriah, + Urvilan, + Urvile, + Usbourne, + Usher, + Ushimawa, + Ushtar, + Usitnov, + Usobuki, + Utarid, + UTexas, + Utherwurldly, + Utorid, + Utu, + UwU, + Uxlay, + Vanilla, + Vanlager, + Venus, + Vermilion, + Vorhees, + Vortex, + Voxel, + Vaalbara, + Vacano, + Vacirca, + Vaher, + Vainreth, + Valdez, + Vale, + Valeeva, + Valen, + Valencia, + Valentin, + Valentine, + Valentino, + Valenzuela, + Valerian, + Valerik, + Valerio, + Valeska, + Valeur, + Valiant, + Valimedzic, + Valkoinen, + Valkyrie, + Valle, + Vallejo, + Vallely, + Valois, + Vanalten, + Vanbeeck, + Vanbrugh, + Vance, + Vandeperck, + Vanderbor, + Vanderhuge, + Vanderpoole, + VanDerReewaag, + Vandeverre, + VanDornan, + VanDouser, + Vandyke, + Vanek, + Vang, + Vanguard, + Vanistok, + Vaniva, + Vanmoer, + Vasiliev, + Vasiliov, + Vasilopita, + Vela, + Velasquez, + Velaystar, + Velazquez, + Velde, + Velez, + Velinov, + Veliz, + Vella, + Vellhi, + Veloce, + Velvetleaf, + Vemo, + Vendetta, + Venenbaum, + Venera, + Venkman, + Venom, + Ventris, + Ventura, + Vera, + Veranes, + Verdigra, + Veriander, + Verino, + Verity, + Verlack, + Verlaine, + Verlangen, + Verne, + Vernet, + Vernon, + Verrazzano, + Verstandig, + Vertes, + Vervain, + Verwood, + Vesios, + Vesperia, + Vespucciano, + Vesta, + Vestel, + Vesuvino, + Vezina, + vGov, + Vhargon, + Viatruso, + Vichan, + Vick, + Vickers, + Vidor, + Viegel, + Vielle, + Vieria, + Viertz, + Vig, + Vigil, + Viking, + Vilas, + Villa, + Villalobos, + Villanueva, + Villarreal, + Villegas, + Villiers, + Villosum, + Villota, + Vinaver, + Vincent, + Vinciolo, + Vindaloo, + Vinson, + Vintner, + Violet, + Viper, + Virgo, + Viridis, + Virtanen, + Visage, + Visconti, + Vision, + Visitor, + ViSTaLearner, + Vita, + Vivian, + Vixen, + vLearning, + Vlitzen, + Vlodovic, + Vodafone, + Vodopan, + Vogel, + Vogelbaum, + Vogt, + Voight, + Voir, + Voix, + Volare, + Volitant, + Voljeti, + Vollmar, + Vollmer, + Volos, + Volotenko, + Voltaire, + Vonbaum, + Vonderheide, + Vondran, + VonLenard, + Vonnegut, + Voom, + Voorhees, + Vordun, + Vorozheikin, + Voskhod, + Vosmus, + Voss, + Vostok, + Vought, + Vox, + Voyager, + Voyunicef, + Vrandic, + vScotEd, + Vuckovic, + Vuissent, + Vultee, + Vyceratops, + Vyper, + Wachmann, + Wachtel, + Wachter, + Waco, + Waddell, + Waddington, + Wade, + Waechter, + Waffle, + Wagner, + Wagstaff, + Wahrhaftig, + Wahwah, + Waifu, + Wainwright, + Waisman, + Wakaonna, + Wakawaka, + Wake, + Waki, + Wakmann, + Wakowski, + Walach, + Walamai, + Walcher, + Walcott, + Walden, + Waldman, + Waldron, + Walkabout, + Walkenberg, + Walker, + Wall, + Wallaby, + Wallace, + Waller, + Wallifers, + Walls, + Walmer, + Walpanheim, + Walpole, + Zinnemann, + Zinner, + Ziplon, + Zipper, + Zircon, + Zirgar, + Zise, + Ziskey, + Zlatkes, + Zlatkis, + Zobel, + Zobovic, + ZoHaIslands, + Zohari, + Zohonna, + Zoilin, + Zolnir, + Zon, + Zona, + Zond, + Zong, + Zoon, + Zorger, + Zorric, + Zou, + Zsigmond, + Zsun, + Zucker, + Zufreur, + Zugzwang, + Zuhal, + Zuhra, + Zuhrah, + Zuidde, + Zuiden, + Zuiker, + Zukerman, + Zymurgy; + + static List> getCurrentNames() { + List slice = getNames(); + List> ret = []; + for (LastNames name in slice) { + ret.add(name.getEntry()); + } + + return ret; + } + + static List getNames() { + // Get the current date + DateTime now = DateTime.now(); + + // Generate a seed from the current date + int seed = now.year * 10000 + now.month * 100 + now.day; + Random random = Random(seed); + + // Get all values from the LastNames enum + List allNames = LastNames.values; + + // Shuffle the list using the seeded random number generator + List shuffledNames = List.from(allNames)..shuffle(random); + + // Pick the first 30 names from the shuffled list + return shuffledNames.take(30).toList(); + } + + DropdownMenuEntry getEntry() { + return DropdownMenuEntry(value: name, label: name); + } +} diff --git a/lib/Settings.dart b/lib/Settings.dart index 13e8b51..4c9f4eb 100644 --- a/lib/Settings.dart +++ b/lib/Settings.dart @@ -63,8 +63,9 @@ class Settings { NbtUtils.writeBoolean(tag, "loggedIn", settings.loggedIn); tag.put("name", StringTag.valueOf(settings.userName)); tag.put("display", StringTag.valueOf(settings.displayName)); - if (settings.currentUser != null) + if (settings.currentUser != null) { tag.put("user", settings.currentUser!.save()); + } return tag; } diff --git a/lib/pages/LoginAccount.dart b/lib/pages/LoginAccount.dart index 26e8b3c..014ba02 100644 --- a/lib/pages/LoginAccount.dart +++ b/lib/pages/LoginAccount.dart @@ -8,7 +8,7 @@ import 'package:zontreck/Packets.dart'; import 'package:zontreck/Settings.dart'; class LoginAccountPage extends StatefulWidget { - LoginAccountPage({super.key}); + const LoginAccountPage({super.key}); @override State createState() => LoginAccountState(); @@ -25,35 +25,35 @@ class LoginAccountState extends State { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: Text("OpenSim - Login"), + title: const Text("OpenSim - Login"), backgroundColor: Constants.TITLEBAR_COLOR, ), body: Padding( - padding: EdgeInsets.all(8), + padding: const EdgeInsets.all(8), child: SingleChildScrollView( child: Column( children: [ ListTile( - title: Text("First Name"), + title: const Text("First Name"), subtitle: TextField( controller: first, - decoration: InputDecoration(hintText: "Jane"), + decoration: const InputDecoration(hintText: "Jane"), ), ), ListTile( - title: Text("Last Name"), + title: const Text("Last Name"), subtitle: TextField( controller: last, - decoration: InputDecoration(hintText: "Smith"), + decoration: const InputDecoration(hintText: "Smith"), ), ), ListTile( - title: Text("Password"), + title: const Text("Password"), subtitle: TextField( controller: pass, obscureText: true, obscuringCharacter: "*", - decoration: InputDecoration(hintText: "*******"), + decoration: const InputDecoration(hintText: "*******"), ), ), ElevatedButton( @@ -68,7 +68,7 @@ class LoginAccountState extends State { print("RESPONSE : ${response.encode()}"); if (response.loggedIn) { ScaffoldMessenger.of(context).showSnackBar( - SnackBar(content: Text("Login success"))); + const SnackBar(content: Text("Login success"))); settings.loggedIn = true; settings.currentUser = response.user; @@ -87,7 +87,7 @@ class LoginAccountState extends State { "Error while logging in: ${response.reason}"))); } }, - child: Text("Login")) + child: const Text("Login")) ], ), ), diff --git a/lib/pages/Main.dart b/lib/pages/Main.dart index 738ae67..532534e 100644 --- a/lib/pages/Main.dart +++ b/lib/pages/Main.dart @@ -16,10 +16,10 @@ class MainPage extends StatelessWidget { routes: { "/": (context) => const HomePage(), "/opensim": (context) => const OpenSimPage(), - "/opensim/register": (context) => RegisterAccountPage(), - "/opensim/login": (context) => LoginAccountPage(), - "/portfolio": (context) => PortfolioPage(), - "/portfolio/coun": (context) => CardsOfUtterNonsense() + "/opensim/register": (context) => const RegisterAccountPage(), + "/opensim/login": (context) => const LoginAccountPage(), + "/portfolio": (context) => const PortfolioPage(), + "/portfolio/coun": (context) => const CardsOfUtterNonsense() }, theme: ThemeData.dark(), ); @@ -87,9 +87,9 @@ class HomePageState extends State { }, ), ListTile( - title: Text("P O R T F O L I O"), - subtitle: Text("View my work"), - leading: Icon(Icons.book_online), + title: const Text("P O R T F O L I O"), + subtitle: const Text("View my work"), + leading: const Icon(Icons.book_online), onTap: () { Navigator.pushNamed(context, "/portfolio"); }, diff --git a/lib/pages/OpenSim.dart b/lib/pages/OpenSim.dart index 7db72ad..efd082b 100644 --- a/lib/pages/OpenSim.dart +++ b/lib/pages/OpenSim.dart @@ -117,7 +117,7 @@ class OpenSimPageState extends State { SharedPreferences prefs = await SharedPreferences.getInstance(); if (prefs.containsKey("settings")) { String encoded = prefs.getString("settings")!; - CompoundTag tag = await NbtIo.readBase64String(encoded) as CompoundTag; + CompoundTag tag = await NbtIo.readBase64String(encoded); if (tag.contains("user")) { settings.currentUser = User.load(tag.get("user") as CompoundTag); settings.loggedIn = true; @@ -157,7 +157,7 @@ class OpenSimPageState extends State { await showDialog( context: context, builder: (B) { - return CreateInventoryPopup(); + return const CreateInventoryPopup(); }); activating = false; // Force user to re-login @@ -188,7 +188,7 @@ class OpenSimPageState extends State { padding: const EdgeInsets.all(8), child: SingleChildScrollView( child: polling - ? Column( + ? const Column( children: [ ListTile( title: Text("Please wait... downloading content"), @@ -236,7 +236,7 @@ class OpenSimPageState extends State { didChangeDependencies(); }, - child: Text("LOGOUT")) + child: const Text("LOGOUT")) ], ) : Center( @@ -249,14 +249,14 @@ class OpenSimPageState extends State { didChangeDependencies(); }, - child: Text("Login")), + child: const Text("Login")), ElevatedButton( onPressed: () async { await Navigator.pushNamed( context, "/opensim/register"); didChangeDependencies(); }, - child: Text("Register Account")) + child: const Text("Register Account")) ], )) ], diff --git a/lib/pages/Portfolio.dart b/lib/pages/Portfolio.dart index c282cb6..eddbb7c 100644 --- a/lib/pages/Portfolio.dart +++ b/lib/pages/Portfolio.dart @@ -4,13 +4,13 @@ import 'package:footer/footer_view.dart'; import 'package:zontreck/Constants.dart'; class PortfolioPage extends StatelessWidget { - PortfolioPage({super.key}); + const PortfolioPage({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: Text("Zontreck.com - Portfolio of Tara Piccari"), + title: const Text("Zontreck.com - Portfolio of Tara Piccari"), backgroundColor: Constants.TITLEBAR_COLOR, ), body: FooterView( @@ -21,26 +21,26 @@ class PortfolioPage extends StatelessWidget { const Text("${Constants.COPYRIGHT}\n${Constants.VERSION}")), children: [ Padding( - padding: EdgeInsets.all(8), + padding: const EdgeInsets.all(8), child: SingleChildScrollView( child: Row( children: [ PortfolioEntry( - title: ListTile(title: Text("Cards of Utter Nonsense")), - body: Text( + title: const ListTile(title: Text("Cards of Utter Nonsense")), + body: const Text( "A product I created for Second Life, but may port to the mobile phone at some point"), onTap: () { Navigator.pushNamed(context, "/portfolio/coun"); }, ), PortfolioEntry( - title: Text("Zontreck.com"), - body: Text( + title: const Text("Zontreck.com"), + body: const Text( ("This website, which is written entirely in Flutter, with some supporting API files in PHP")), onTap: () {}), PortfolioEntry( - title: Text("Minecraft Modding"), - body: Text( + title: const Text("Minecraft Modding"), + body: const Text( "These mods are all written in Java. The various mods I currently maintain, previously maintained, or have contributed to are: Thresholds, Aria's Essentials, LibZontreck, Let's Do Beachparty, WatchMyDurability"), onTap: () {}) ], @@ -56,8 +56,8 @@ class PortfolioEntry extends StatelessWidget { final Widget body; final Function() onTap; - PortfolioEntry( - {required this.title, required this.body, required this.onTap}); + const PortfolioEntry( + {super.key, required this.title, required this.body, required this.onTap}); @override Widget build(BuildContext context) { @@ -67,14 +67,14 @@ class PortfolioEntry extends StatelessWidget { child: InkWell( onTap: onTap, child: Padding( - padding: EdgeInsets.all(8), + padding: const EdgeInsets.all(8), child: SizedBox( width: 225, height: 325, child: Column( children: [ title, - Divider( + const Divider( thickness: 4, ), body @@ -88,14 +88,16 @@ class PortfolioEntry extends StatelessWidget { } class CardsOfUtterNonsense extends StatelessWidget { + const CardsOfUtterNonsense({super.key}); + @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: Text("Portfolio Entry - Cards of Utter Nonsense"), + title: const Text("Portfolio Entry - Cards of Utter Nonsense"), backgroundColor: Constants.TITLEBAR_COLOR, ), - body: Padding( + body: const Padding( padding: EdgeInsets.all(8), child: SingleChildScrollView( child: Column( diff --git a/lib/pages/RegisterAccount.dart b/lib/pages/RegisterAccount.dart index eeb5d71..dd6005d 100644 --- a/lib/pages/RegisterAccount.dart +++ b/lib/pages/RegisterAccount.dart @@ -6,8 +6,10 @@ import 'package:zontreck/Constants.dart'; import 'package:zontreck/Packets.dart'; import 'package:zontreck/Settings.dart'; +import '../LastNames.dart'; + class RegisterAccountPage extends StatefulWidget { - RegisterAccountPage({super.key}); + const RegisterAccountPage({super.key}); @override RegisterAccountState createState() => RegisterAccountState(); @@ -48,7 +50,7 @@ class RegisterAccountState extends State { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: Text("OpenSim - Register Account"), + title: const Text("OpenSim - Register Account"), backgroundColor: Constants.TITLEBAR_COLOR, ), floatingActionButton: canSubmit @@ -70,17 +72,17 @@ class RegisterAccountState extends State { APIEndpoint.Register, packet) as S2CSimpleReplyPacket; if (response.done) { - ScaffoldMessenger.of(context).showSnackBar(SnackBar( + ScaffoldMessenger.of(context).showSnackBar(const SnackBar( content: Text( "User Account Created. You must now login to finish setting up the account"))); Navigator.pop(context); } else { - ScaffoldMessenger.of(context).showSnackBar(SnackBar( + ScaffoldMessenger.of(context).showSnackBar(const SnackBar( content: Text("Fatal error when creating user account"))); } }, - child: Text("Create my Account")) + child: const Text("Create my Account")) : null, body: FooterView( footer: Footer( @@ -90,20 +92,20 @@ class RegisterAccountState extends State { const Text("${Constants.COPYRIGHT}\n${Constants.VERSION}")), children: [ Padding( - padding: EdgeInsets.all(8), + padding: const EdgeInsets.all(8), child: SingleChildScrollView( child: Column( children: [ settings.hasNoUsers ? ListTile( - title: Text("There are no users on this grid."), + title: const Text("There are no users on this grid."), tileColor: Constants.TITLEBAR_COLOR, subtitle: Text( "This account will be granted Level 240, and the User Title : ${UserTitles.OPERATOR.title}"), ) - : SizedBox(), + : const SizedBox(), ListTile( - title: Text("First Name"), + title: const Text("First Name"), subtitle: TextField( controller: firstNameController, onChanged: (v) { @@ -112,7 +114,7 @@ class RegisterAccountState extends State { ), ), ListTile( - title: Text("Last Name"), + title: const Text("Last Name"), subtitle: Constants.ALLOW_ANY_LAST_NAME || settings.hasNoUsers ? TextField( @@ -131,10 +133,10 @@ class RegisterAccountState extends State { LastNames.getCurrentNames(), )), ListTile( - title: Text("Password"), + title: const Text("Password"), subtitle: TextField( controller: password, - decoration: InputDecoration( + decoration: const InputDecoration( hintText: "*******", ), obscureText: true, @@ -145,10 +147,10 @@ class RegisterAccountState extends State { ), ), ListTile( - title: Text("Password Confirmation"), + title: const Text("Password Confirmation"), subtitle: TextField( controller: confirm, - decoration: InputDecoration( + decoration: const InputDecoration( hintText: "*******", ), obscureText: true, @@ -160,21 +162,21 @@ class RegisterAccountState extends State { ), passwordMatches || password.text == "" && confirm.text == "" - ? Divider( + ? const Divider( thickness: 2, ) - : ListTile( + : const ListTile( title: Text("Passwords do not match"), tileColor: Constants.TITLEBAR_COLOR, ), ListTile( - title: Text("Email Address"), + title: const Text("Email Address"), subtitle: TextField( onChanged: (V) { setState(() {}); }, controller: email, - decoration: InputDecoration( + decoration: const InputDecoration( hintText: "Your email address. It is not used by zontreck.com, but if needed, can be used to reach you"), ), @@ -186,23 +188,3 @@ class RegisterAccountState extends State { ])); } } - -enum LastNames { - Aabye, - Aarde, - Bailey, - Caballero; - - static List> getCurrentNames() { - return [ - LastNames.Aabye.getEntry(), - LastNames.Aarde.getEntry(), - LastNames.Bailey.getEntry(), - LastNames.Caballero.getEntry() - ]; - } - - DropdownMenuEntry getEntry() { - return DropdownMenuEntry(value: this.name, label: this.name); - } -} diff --git a/lib/pages/opensim/Inventory.dart b/lib/pages/opensim/Inventory.dart index 77968f9..d1c46a8 100644 --- a/lib/pages/opensim/Inventory.dart +++ b/lib/pages/opensim/Inventory.dart @@ -47,6 +47,8 @@ enum InventoryFolder { } class CreateInventoryPopup extends StatefulWidget { + const CreateInventoryPopup({super.key}); + @override State createState() => CreateInventoryState(); } @@ -70,7 +72,7 @@ class CreateInventoryState extends State { setState(() { status = "Enabling user account"; }); - await Future.delayed(Duration(milliseconds: 500)); + await Future.delayed(const Duration(milliseconds: 500)); Settings settings = Settings(); C2SActivateUserPacket activate = @@ -83,11 +85,11 @@ class CreateInventoryState extends State { }); } - await Future.delayed(Duration(seconds: 1)); + await Future.delayed(const Duration(seconds: 1)); Navigator.pop(context); - ScaffoldMessenger.of(context).showSnackBar(SnackBar( + ScaffoldMessenger.of(context).showSnackBar(const SnackBar( content: Text( "Inventory successfully created. Your account is now active"))); } @@ -95,7 +97,7 @@ class CreateInventoryState extends State { bool processing = false; Future startProcessing() async { total = InventoryFolder.values.length; - await Future.delayed(Duration(seconds: 5)); + await Future.delayed(const Duration(seconds: 5)); UUID rootFolder = UUID.generate(4); @@ -130,8 +132,8 @@ class CreateInventoryState extends State { client: Constants.CLIENTPSK); setState(() { - status = ("Creating Inventory Folder: ${name}"); - if (Constants.DEBUG) print("Creating Inventory Folder: ${name}"); + status = ("Creating Inventory Folder: $name"); + if (Constants.DEBUG) print("Creating Inventory Folder: $name"); }); var reply = await settings.sendPacketToEndpoint( @@ -143,16 +145,17 @@ class CreateInventoryState extends State { context: context, builder: (V) { return AlertDialog( - title: Text("FATAL ERROR"), + title: const Text("FATAL ERROR"), content: Text( "For an unknown reason, we failed to create the inventory folders. Some may have been created, but there was an error while processing: ${makeFolder.encodeSafe()}"), ); }); - } else + } else { setState(() { - status = ("Created Inventory Folder : ${name}"); - if (Constants.DEBUG) print("Created Inventory Folder: ${name}"); + status = ("Created Inventory Folder : $name"); + if (Constants.DEBUG) print("Created Inventory Folder: $name"); }); + } value++; @@ -161,23 +164,23 @@ class CreateInventoryState extends State { }); } - Timer.periodic(Duration(milliseconds: 500), createFolder); + Timer.periodic(const Duration(milliseconds: 500), createFolder); } @override Widget build(BuildContext context) { return AlertDialog( - icon: Icon(Icons.folder_copy), - title: Text("Please Wait... Activating Account"), + icon: const Icon(Icons.folder_copy), + title: const Text("Please Wait... Activating Account"), content: SizedBox( height: 75, child: Column( children: [ - Text("Creating necessary Inventory Folders"), + const Text("Creating necessary Inventory Folders"), Text( status, ), - Divider(), + const Divider(), LinearProgressIndicator( value: getProgress(), color: Constants.PORTFOLIO_CARD_COLOR,