Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
b8190446
Unverified
Commit
b8190446
authored
Jan 25, 2019
by
Michael Goderbauer
Committed by
GitHub
Jan 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo fixes for notched_shapes.dart (#27097)
parent
f9e6242d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
notched_shapes.dart
packages/flutter/lib/src/painting/notched_shapes.dart
+8
-4
No files found.
packages/flutter/lib/src/painting/notched_shapes.dart
View file @
b8190446
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'dart:math'
as
math
;
import
'basic_types.dart'
;
...
...
@@ -6,7 +10,7 @@ import 'basic_types.dart';
///
/// Typically used as the outline of a 'host' widget to make a notch that
/// accommodates a 'guest' widget. e.g the [BottomAppBar] may have a notch to
/// accom
odate the [FloatingActionBar
].
/// accom
modate the [FloatingActionButton
].
/// See also: [ShapeBorder], which defines a shaped border without a dynamic
/// notch.
...
...
@@ -26,7 +30,7 @@ abstract class NotchedShape {
/// A rectangle with a smooth circular notch.
class
CircularNotchedRectangle
implements
NotchedShape
{
/// Creates a
`CircularNotchedRectangle`
.
/// Creates a
[CircularNotchedRectangle]
.
///
/// The same object can be used to create multiple shapes.
const
CircularNotchedRectangle
();
...
...
@@ -36,7 +40,7 @@ class CircularNotchedRectangle implements NotchedShape {
/// `host` is the bounding box for the returned shape. Conceptually this is
/// the rectangle to which the notch will be applied.
///
/// `guest` is the bounding box of a circle that the notch accomodates. All
/// `guest` is the bounding box of a circle that the notch accom
m
odates. All
/// points in the circle bounded by `guest` will be outside of the returned
/// path.
///
...
...
@@ -55,7 +59,7 @@ class CircularNotchedRectangle implements NotchedShape {
// We build a path for the notch from 3 segments:
// Segment A - a Bezier curve from the host's top edge to segment B.
// Segment B - an arc with radius notchRadius.
// Segment C - a Bezier curve
r
from segment B back to the host's top edge.
// Segment C - a Bezier curve from segment B back to the host's top edge.
//
// A detailed explanation and the derivation of the formulas below is
// available at: https://goo.gl/Ufzrqn
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment