Programming Flutter Native Cross Platform Apps the Easy Way 1st Edition Carmine Zaccagnino - Download the ebook now and own the full detailed content
Programming Flutter Native Cross Platform Apps the Easy Way 1st Edition Carmine Zaccagnino - Download the ebook now and own the full detailed content
com
https://textbookfull.com/product/programming-flutter-native-
cross-platform-apps-the-easy-way-1st-edition-carmine-
zaccagnino/
OR CLICK HERE
DOWLOAD EBOOK
https://textbookfull.com/product/programming-flutter-native-cross-
platform-apps-the-easy-way-1st-edition-carmine-zaccagnino-2/
textbookfull.com
https://textbookfull.com/product/cross-platform-localization-for-
native-mobile-apps-with-xamarin-1st-edition-christopher-miller/
textbookfull.com
https://textbookfull.com/product/ultimate-flutter-for-cross-platform-
app-development-1st-edition-temidayo-adefioye/
textbookfull.com
https://textbookfull.com/product/xamarin-forms-essentials-first-steps-
toward-cross-platform-mobile-apps-1st-edition-gerald-versluis-auth/
textbookfull.com
Mobile app development with Ionic cross platform apps with
Ionic Angular and Cordova Griffith
https://textbookfull.com/product/mobile-app-development-with-ionic-
cross-platform-apps-with-ionic-angular-and-cordova-griffith/
textbookfull.com
https://textbookfull.com/product/learn-google-flutter-fast-65-example-
apps-mark-clow/
textbookfull.com
https://textbookfull.com/product/beginning-visual-studio-for-mac-
build-cross-platform-apps-with-xamarin-and-net-core-alessandro-del-
sole/
textbookfull.com
Programming Flutter
NATIVE, CROSS-PLATFORM APPS THE EASY WAY
BY CARMINE ZACCAGNINO
Version: P1.0 (February 2020)
Copyright © 2020 The Pragmatic Programmers,
LLC. This book is licensed to the individual who
purchased it. We don't copy-protect it because that
would limit your ability to use it for your own
purposes. Please don't break this trust—you can
use this across all of your devices but please do not
share this copy with other members of your team,
with friends, or via file sharing services. Thanks.
Andy Hunt
The Pragmatic Programmers
1. Acknowledgments
2. Preface
1. A Brief History of Flutter
5. Vertical Layout
6. Horizontal Layout: The Row
7. Making Grids
8. The Card
9. Fill the Space Available in the View Using Expanded
10. Slivers, Custom Scrollables, and Collapsable App Bars
11. The Key
4. The StreamBuilder
5. Building the Chat App
6. Where You’re Going Next
4. main
5. Asynchronous Code in Dart: The dart:async Library
6. Conditional Constructs and Expressions
→ Giordano Scalzo
iOS Senior Software Engineer, NatWest Markets
→ Alessio Salvadorini
Creative Technologist, Nokia
→ Erdem Orman
Software Development Engineer, Amazon
If you want or need to do cross-platform mobile app
development, you should have this book at hand.
Programming Flutter, by Carmine Zaccagnino, walks you
systematically through this important Google platform for
building full apps that work with Android, iOS, and Google
Fuchsia.
→ John Barry
Independent Editorial Consultant, various
→ Paul Freiberger
Coauthor, Fire in the Valley: The Birth and Death of the
Personal Computer
Acknowledgments
This book exists because Flutter was released and such a
revolutionary technology needed a way for people to know
about it and learn it however they prefer. So, before even talking
about the book, it’s necessary to remember how good it is for
the developer community that Google has released Flutter and
they’re continuing to invest in it to make it even more
revolutionary and important every day that passes.
Talking about the book, it has to be said that working with the
Pragmatic Bookshelf has been great. First of all, I want to thank
Andy Hunt, who as a publisher has built a wonderful team:
starting from my very first interactions with Brian MacDonald
over my proposal to write this book everyone has been
thorough, welcoming, and helpful.
I want to thank everybody who has looked at the book and given
me feedback, which I have taken on and tried to use to the best
of my ability to make the book better for everyone. In particular,
the technical reviewers who have been thorough and thoughtful
in their feedback and the beta book readers who have taken
their time to submit errata: it’s been very important and seeing
how thorough they have been has encouraged me to do as much
as I could for the book. Thank you Giordano Scalzo, Alessio
Salvadorini, Erdem Orman, Paul Freiberger, and John Barry.
At I/O 2017 Google showed off using Flutter and its multi-
platform capabilities, and continued promoting it at I/O 2018.
Since then, Google has been investing in Flutter and
recommending it as the way everyone should be developing
mobile apps.
For one thing, with Flutter you’ll be able to develop apps that
work with Android, iOS, and Google Fuchsia,[2] (which might
replace Android and/or Chrome OS at some point in the
future). Flutter is developed by Google, but it fully supports iOS,
and this means you can now also run an iOS emulator and build
for iOS in Android Studio. However, you won’t be able to build
iOS apps on Linux or Windows because iOS emulation and
compilation is still done through Xcode.
If you prefer to use the command line (maybe because you want
to use other, perhaps lighter, IDEs or text editors) there will be
guidance on the usage of the flutter command throughout the
book.
INSTALLING FLUTTER
The installation process for the Flutter SDK differs slightly for
each operating system, so I’ll separate the instructions into
three sections. Skip ahead to the instructions specific to your
platform and, if you want to install them, the part that covers
IDE plugin installation.
Installing on Linux
Extract the tarball you just downloaded with any GUI tool of
your liking or by running the following command:
$ tar -xf flutter_linux_v1.2.1-stable.tar.xz
Before doing this, you need to take note of the directory where
you extracted the tarball. It contains a flutter directory, inside
which there is a bin directory; we need to know the path to reach
that bin directory.
$ cd flutter/bin
$ pwd
[9]
This section supposes that your shell is Bash.
This is the case for most Linux distributions (and Unix-like
operating systems in general—some exceptions are the BSDs,
[10]
which have tcsh,
[11]
ksh,
[12]
or ash,
[13]
and Arch Linux’s installer, which runs on Zsh
but installs Bash by default) and, since you would need to
manually install and configure a different one, you probably
would know how to add a directory to its PATH.
To do that using the GUI, you first need your file manager to
display hidden files. If you can’t find a file named .bash_profile in
your home directory, you need to toggle the option that makes
the file manager show hidden files, and this depends on the file
manager that you’re using:
If you are using the KDE desktop (for example when running
Kubuntu or when choosing it when installing distributions like
openSUSE or Debian) and its default Dolphin file manager, use
Alt + + .
Once you have located a file called .bash_profile, open it with any
text editor and add the following line to the end of it, in a new
line:
export PATH=$PATH:/home/username/etc
$ source ~/.bash_profile
Installing on Windows
Installing on macOS
Unzip it to any directory, then open the flutter directory you just
extracted. Press ⌘ + I and take note of the path that appears
to the right of Where:.
$ nano ~/.bash_profile
export PATH=$PATH:/example/path/to/flutter/bin
$ source ~/.bash_profile
If you’re not familiar with that process, we’ll now discuss how to
install the Flutter plugin on each IDE.
VSCode
To install the Flutter plugin for Visual Studio Code you need to
open Visual Studio Code itself, then use the keyboard shortcut
Ctrl - Shift - P to open the command palette, then type “Install
extensions” and press Enter .
On the panel that opens up on the left, type Flutter and press
Enter .
Click the Install button in the Flutter entry in the list, this will
install both the Flutter and the Dart plugins.
Unlike the Flutter plugin for Android Studio, the Flutter plugin
for Visual Studio Code plugin will auto-detect the location
where the Flutter SDK is installed.
Android Studio
“Mrs. Shakespeare Smith would like to have Mr. John Brooke, Mr.
Thomas Bangs, and Mr. Nathaniel Blake to come to her ball at three
o’clock to-day.
“P.S.—Nat must bring his fiddle, so we can dance, and all the boys
must be good, or they cannot have any of the nice things we have
cooked.”
This elegant invitation would, I fear, have been declined, but for
the hint given in the last line of the postscript.
“They have been cooking lots of goodies, I smelt ’em. Let’s go,”
said Tommy.
“We needn’t stay after the feast, you know,” added Demi.
“I never went to a ball. What do you have to do?” asked Nat.
“Oh, we just play be men, and sit round stiff and stupid like
grown-up folks, and dance to please the girls. Then we eat up
everything, and come away as soon as we can.”
“I think I could do that,” said Nat, after considering Tommy’s
description for a minute.
“I’ll write and say we’ll come;” and Demi despatched the following
gentlemanly reply,—
“We will all come. Please have lots to eat.—J. B. Esquire.”
Great was the anxiety of the ladies about their first ball, because if
every thing went well they intended to give a dinner-party to the
chosen few.
“Aunt Jo likes to have the boys play with us, if they are not rough;
so we must make them like our balls, then they will do them good,”
said Daisy, with her maternal air, as she set the table and surveyed
the store of refreshments with an anxious eye.
“Demi and Nat will be good, but Tommy will do something bad, I
know he will,” replied Nan, shaking her head over the little cake-
basket which she was arranging.
“Then I shall send him right home,” said Daisy, with decision.
“People don’t do so at parties, it isn’t proper.”
“I shall never ask him any more.”
“That would do. He’d be sorry not to come to the dinner-ball,
wouldn’t he?”
“I guess he would! we’ll have the splendidest things ever seen,
won’t we? Real soup with a ladle and a tureem [she meant tureen]
and a little bird for turkey, and gravy, and all kinds of nice
vegytubbles.” Daisy never could say vegetables properly, and had
given up trying.
“It is ’most three, and we ought to dress,” said Nan, who had
arranged a fine costume for the occasion, and was anxious to wear
it.
“I am the mother, so I shan’t dress up much,” said Daisy, putting
on a night-cap ornamented with a red bow, one of her aunt’s long
skirts, and a shawl; a pair of spectacles and a large pocket
handkerchief completed her toilette, making a plump, rosy little
matron of her.
Nan had a wreath of artificial flowers, a pair of old pink slippers, a
yellow scarf, a green muslin skirt, and a fan made of feathers from
the duster; also, as a last touch of elegance, a smelling-bottle
without any smell in it.
“I am the daughter, so I rig up a good deal, and I must sing and
dance, and talk more than you do. The mothers only get the tea and
be proper, you know.”
A sudden very loud knock caused Miss Smith to fly into a chair,
and fan herself violently, while her mamma sat bolt upright on the
sofa, and tried to look quite calm and “proper.” Little Bess, who was
on a visit, acted the part of maid, and opened the door, saying with
a smile, “Wart in, gemplemun; it’s all weady.”
In honor of the occasion, the boys wore high paper collars, tall
black hats, and gloves of every color and material, for they were an
afterthought, and not a boy among them had a perfect pair.
“Good day, mum,” said Demi, in a deep voice, which was so hard
to keep up that his remarks had to be extremely brief.
Every one shook hands and then sat down, looking so funny, yet
so sober, that the gentlemen forgot their manners, and rolled in their
chairs with laughter.
“Oh, don’t!” cried Mrs. Smith, much distressed.
“You can’t ever come again if you act so,” added Miss Smith,
rapping Mr. Bangs with her bottle because he laughed loudest.
“I can’t help it, you look so like fury,” gasped Mr. Bangs, with most
uncourteous candor.
“So do you, but I shouldn’t be so rude as to say so. He shan’t
come to the dinner-ball, shall he, Daisy?” cried Nan, indignantly.
“I think we had better dance now. Did you bring your fiddle, sir?”
asked Mrs. Smith, trying to preserve her polite composure.
“It is outside the door,” and Nat went to get it.
“Better have tea first,” proposed the unabashed Tommy, winking
openly at Demi to remind him that the sooner the refreshments
were secured, the sooner they could escape.
“No, we never have supper first; and if you don’t dance well you
won’t have any supper at all, not one bit, sir,” said Mrs. Smith, so
sternly that her wild guests saw she was not to be trifled with, and
grew overwhelmingly civil all at once.
“I will take Mr. Bangs and teach him the polka, for he does not
know it fit to be seen,” added the hostess, with a reproachful look
that sobered Tommy at once.
Nat struck up, and the ball opened with two couples, who went
conscientiously through a somewhat varied dance. The ladies did
well, because they liked it, but the gentlemen exerted themselves
from more selfish motives, for each felt that he must earn his
supper, and labored manfully toward that end. When every one was
out of breath they were allowed to rest; and, indeed, poor Mrs.
Smith needed it, for her long dress had tripped her up many times.
The little maid passed round molasses and water in such small cups
that one guest actually emptied nine. I refrain from mentioning his
name, because this mild beverage affected him so much that he put
cup and all into his mouth at the ninth round, and choked himself
publicly.
“You must ask Nan to play and sing now,” said Daisy to her
brother, who sat looking very much like an owl, as he gravely
regarded the festive scene between his high collars.
“Give us a song, mum,” said the obedient guest, secretly
wondering where the piano was.
Miss Smith sailed up to an old secretary which stood in the room,
threw back the lid of the writing-desk, and sitting down before it,
accompanied herself with a vigor which made the old desk rattle as
she sang that new and lovely song, beginning—
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
textbookfull.com