Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Serverlabs Flutter Talk

Serverlabs Flutter Talk

Muhammed Salih Güler

April 20, 2023
Tweet

More Decks by Muhammed Salih Güler

Other Decks in Technology

Transcript

  1. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. Muhammed Salih Güler (he/him) Senior Developer Advocate AWS Amplify Building Full Stack Flutter Applications with AWS Amplify
  2. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 4
  3. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. What is Flutter? 5
  4. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. 6 What is Flutter? Flutter is Google’s portable UI toolkit for creating: • beautiful • natively compiled applications for mobile, web, and desktop from a single codebase.
  5. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. What makes Flutter different? Dart Dart is a modern, concise, object- oriented programming language Native Performance Flutter projects compiles into native code. It is also hosted on a native app. It draws each pixel to the screen by itself. Open Source Flutter is an open source project mainly funded by Google with contributors from all around the world. Community Flutter community is a vibrant and growing community. Check out flutter.dev/community for more information. 7
  6. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. How Flutter works 8 Dart Code Widgets Rendering Platform Channels Flutter Code Platform Services Canvas Events Location Audio Bluetooth Sensors Camera many more!
  7. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 9
  8. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 10
  9. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 11
  10. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. What is AWS Amplify? 12
  11. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. 13 Agility Time to market Rapid innovation No one-way doors Great experience Multidevice Modern look/feel Differentiated features Production-ready Low latency Secure Reliable and scalable Technical needs Fullstack development Features that use device + cloud Integrated development Less boilerplate Best practices built in Web Native-like experience Support for hybrid client/server rendering (e.g., Next.js) Cross-platform One codebase Support for Flutter, React Native, Apple cross-platform
  12. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 14 We built Amplify to make it easy for frontend developers to build full-stack apps
  13. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. 15 Build AWS backend Amplify Studio Amplify CLI Build app UI (web) Amplify Studio Host an app (web) Amplify Hosting FULLSTACK DEVELOPMENT WEB Connect to backend Amplify Libraries UI Components CROSS-PLATFORM & MOBILE
  14. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. Amplify Libraries 16
  15. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 17 The Amplify open-source client libraries provide cloud powered operations enabling developers to easily interact with their backends
  16. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Supported Platforms 18 This Photo by Unknown Author is licensed under CC BY-SA This Photo by Unknown Author is licensed under CC BY-SA This Photo by Unknown Author is licensed under CC BY-SA This Photo by Unknown Author is licensed under CC BY-SA This Photo by Unknown Author is licensed under CC BY-SA This Photo by Unknown Author is licensed under CC BY- NC-ND
  17. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. Amplify UI Components 19
  18. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 20 Amplify UI is a collection of accessible, themeable, performant components that can connect directly to the cloud.
  19. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. Amplify Flutter 21
  20. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Amplify Flutter Libraries Analytics Authentication GraphQL API Rest API Storage UI Components Authenticator 22
  21. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. Cloning Flutter Project 23
  22. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 26
  23. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. Amplify CLI 27
  24. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 28 The Amplify Command Line Interface (CLI) is a unified toolchain to create, integrate, and manage the AWS cloud services for your app.
  25. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 29
  26. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Installing Amplify CLI - cURL 30
  27. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Installing Amplify CLI - cURL 31
  28. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Installing Amplify CLI - npm 32
  29. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Configuring Amplify CLI 33
  30. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Configuring Amplify CLI 34
  31. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Configuring Amplify CLI 35
  32. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Configuring Amplify CLI 36
  33. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Configuring Amplify CLI 37
  34. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Configuring Amplify CLI 38
  35. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Configuring Amplify CLI 39
  36. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Configuring Amplify CLI 40
  37. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Configuring Amplify CLI 41
  38. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Configuring Amplify CLI 42
  39. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Configuring Amplify CLI 43
  40. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Configuring Amplify CLI 44
  41. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 45
  42. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. Initializing an Amplify Project 46
  43. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Initializing Project 47
  44. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Initializing Amplify Project 48
  45. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Initializing Amplify Project 49
  46. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Initializing Amplify Project 50
  47. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Initializing Amplify Project 51
  48. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 52
  49. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. Adding Amplify Libraries 53
  50. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Adding Authentication Library 54
  51. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Adding Authentication Library 55
  52. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Adding Authentication Library 56
  53. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Adding GraphQL API Library 57
  54. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Adding GraphQL API Library 58
  55. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Adding Storage Library 59
  56. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Adding Storage Library 60
  57. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Adding Storage Library 61
  58. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Adding Storage Library 62
  59. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Adding Storage Library 63
  60. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 64
  61. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 65
  62. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 66
  63. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 67
  64. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Updating GraphQL Schema 68
  65. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Updating GraphQL Schema 69
  66. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Pushing changes to cloud 70
  67. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 71
  68. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Adding libraries to pubspec.yaml 72
  69. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Configuring libraries on app start 73
  70. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Configuring libraries on app start 74
  71. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 75
  72. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Adding Authentication Flow 76
  73. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 77
  74. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Saving data to GraphQL API 78
  75. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Saving data to GraphQL API 79
  76. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Query data from GraphQL API 80
  77. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Uploading file to Storage 81
  78. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. Uploading file to Storage 82
  79. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 83
  80. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 84
  81. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 85
  82. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 86
  83. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 87
  84. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 88
  85. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. 89
  86. BUILDING FULL STACK FLUTTER APPLICATIONS © 2023, Amazon Web Services,

    Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. Thank you! Muhammed Salih Güler @salihgueler [email protected]