Git Product home page Git Product logo

flutter_codelab's People

Contributors

sergiandreplace avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

flutter_codelab's Issues

A number of minor errors and typos

The Building beautiful UIs with Flutter has a number of minor errors.

Is this the correct place to report the issues?

In Part 3. Start a new Flutter project

It says to use FriendlyChat as the Flutter project name. This is an invalid name. It should be friendly_chat.

In Part 5. Add a UI for composing messages

In _buildTextComposer(), wrap the Container in an IconThem:.
should be
In _buildTextComposer(), wrap the Container in an IconTheme:

and

3. Start typing Row, and select IconTheme from the list. The child property is surrounded by a red box, and the analyzer tells you that the data property is required.
should be
3. Start typing IconTheme, and select IconTheme from the list. The child property is surrounded by a red box, and the analyzer tells you that the data property is required.

In Part 7. Add a UI for displaying messages

There are six places where you can find
ChatScreenState
all six should be
_ChatScreenState

in Part 8. Animate your app

Where it says
Add an animation controller to the _handleSubmitted() method:
There is a code snippet:

  _textController.clear();
  ChatMessage message = ChatMessage(
    text: text,
    animationController: AnimationController(      // NEW
      Duration: const Duration(milliseconds: 700), // NEW
      vsync: this,                                 // NEW
    ),                                             // NEW
  );                                               // NEW
  setState(() {
    _messages.insert(0, message);
  });
  _focusNode.requestFocus();
  message.animationController.forward();           // NEW
}

it has mistakes on line 6 and 9. It should be

  _textController.clear();
  ChatMessage message = ChatMessage(
    text: text,
    animationController: AnimationController(      // NEW
      duration: const Duration(milliseconds: 700), // NEW
      vsync: this,                                 // NEW
    ),                                             // NEW
  );
  setState(() {
    _messages.insert(0, message);
  });
  _focusNode.requestFocus();
  message.animationController.forward();           // NEW
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.