Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Flutter for Beginners

You're reading from   Flutter for Beginners An introductory guide to building cross-platform mobile applications with Flutter and Dart 2

Arrow left icon
Product type Paperback
Published in Sep 2019
Publisher Packt
ISBN-13 9781788996082
Length 512 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Alessandro Biessek Alessandro Biessek
Author Profile Icon Alessandro Biessek
Alessandro Biessek
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Section 1: Introduction to Dart
2. An Introduction to Dart FREE CHAPTER 3. Intermediate Dart Programming 4. An Introduction to Flutter 5. Section 2: The Flutter User Interface - Everything is a Widget
6. Widgets: Building Layouts in Flutter 7. Handling User Input and Gestures 8. Theming and Styling 9. Routing: Navigating between Screens 10. Section 3: Developing Fully Featured Apps
11. Firebase Plugins 12. Developing Your Own Flutter Plugin 13. Accessing Device Features from the Flutter App 14. Platform Views and Map Integration 15. Section 4: Advanced Flutter - Resources to Complex Apps
16. Testing, Debugging, and Deployment 17. Improving User Experience 18. Widget Graphic Manipulations 19. Animations 20. Other Books You May Enjoy

Applying transformations to your widgets

As we have seen until now, Transform widget can help us to modify the widget's natural appearances. Applying transformations to widgets is as simple as adding a Transform widget as the parent of the widget we want to modify. Let's check the alternatives we can use to apply transformations to widgets.

Rotating widgets

As pointed out before, we can use the Transform.rotate() constructor to add a Transform widget to the widget tree responsible for rotating its child. We can use something like this:

Transform.rotate(
angle: -45 * (math.pi / 180.0),
child: RaisedButton(
child: Text("Rotated button"),
onPressed: () {},
),
);

We add a widget that is rotated...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime