Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Add the following code to main.dart.
- import 'package:flutter/foundation.dart'; //new
- // Modify the FriendlychatApp class definition in main.dart.
- class FriendlychatApp extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return new MaterialApp(
- title: "Friendlychat",
- theme: defaultTargetPlatform == TargetPlatform.iOS //new
- ? kIOSTheme //new
- : kDefaultTheme, //new
- home: new ChatScreen(),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement