Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. // Add the following code to main.dart.
  2.  
  3. import 'package:flutter/foundation.dart'; //new
  4.  
  5. // Modify the FriendlychatApp class definition in main.dart.
  6.  
  7. class FriendlychatApp extends StatelessWidget {
  8. @override
  9. Widget build(BuildContext context) {
  10. return new MaterialApp(
  11. title: "Friendlychat",
  12. theme: defaultTargetPlatform == TargetPlatform.iOS //new
  13. ? kIOSTheme //new
  14. : kDefaultTheme, //new
  15. home: new ChatScreen(),
  16. );
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement