text:
DF Curvy Walls: Add more sophisticated methods of defining a circle

Is your feature request related to a problem? Please describe.
Tracing circular walls is currently a relatively painful process, becasue the circle in Curvy Walls is defined by the corners of a square that is drawn around the circle. This makes it necessary to make good guesses about where to place the point, iterating multiple times on the edge positions until the circle is just about right.
Describe the solution you'd like
Mathematically a circle can be fully described by two or three points. That is either:

The center of the circle plus one point on the circle
Three points on the circle

The same goes for Circle arcs, which can be fully described using three points which can be either:

The center of the circle and the start and end points of the arc on the circle
The start and end points of the arc on the circle plus another point on the circle

It would be great if Curvy Walls supported these methods to describe circles and circle arcs. That way it would be possible to directly trace the circle on the map instead of guessing where the corners of the box have to go so the circle will sit at the right location.
I think doing the same would be possible for ellipses - probably requiring more points to be specified - as well.

First, I want to preface this with the following: "I absolutely despise this ticket"... I spent 3 hours tonight trying to approximate a Cubic Bezier curve given 4 points. It broke my brain and I couldn't get anything useable. Turns out Cubic curves can not be mathematically approximated. They can only be interpolated using complex algorithms that are slow and only available in C++ libraries 😩
Second, I now have a much better method of generating Quadratic Curves by approximating. You can also now plot 2-4 points to generate a rectangle.
Third, I am currently having great difficulty with the ellipse. From what I can understand, you can only generate a perfect circle when you only have 2-3 points of data. I have yet to find an equation that allows the calculation of an XY axes aligned ellipse from 4 points of data where you do not know the center of the ellipse.

Thanks for giving this a shot and sorry for causing you so much headache with this reqeust. Admittedly I actually expected this issue to never even get looked at because it's fairly complicated, so kudos for trying (and for getting as far as you got!).
I think the breizer curves don't necessarily need a point approximation method. The way breizers are defined currently "using start and end point and a 'curve indicator'" is very usable in my opinion, so I think skipping on that would be a good option if it's that difficult to do.
As for the ellipse, I think you'll need 5 points to fully describe an ellipse. I've found various resouces on how an ellpise can be constructed from 5 points (one even with an example implementation, but sadly in lisp), but they are a bit too mathsy for me to grasp. Maybe they are of more use to you?
https://math.stackexchange.com/questions/163920/how-to-find-an-ellipse-given-five-points
http://www.lee-mac.com/5pointellipse.html
https://en.wikipedia.org/wiki/Five_points_determine_a_conic

Thank you for looking into it. Yeah it does appear that you need precisely 5 points as a minimum to generate an ellipse. If you only have 4 points, you get an infinite number of ellipses. I'm actually considering changing the system so you can define a circle as I currently have it, but also place a series of control points to create an ellipse that can essentially rotate to any angle. But that might be a little overkill for what this module is meant to solve.
It's not normal for there to be elongated ellipses in a map that are not parallel to the X and Y axes. So like a ship map would typically always be vertical or horizontal. It would be fairly niche I think.

I am refraining from doing the ellipse from 5 points. It's doable, but more complex than I have the time to implement and would require supporting a rotated ellipse, which adds a whole order of complexity to the tools (mainly why I haven't tackled #109).


text:
More setup stuff

Moved auth into authenticated controller so it isn't authenticated by default.

It looks brand spanking new! 👍

source: gharchive/pull-request

authors: Samsinite flarinerin

repo: flarinerin/conify

license: mit

license_type: permissive

license_source: bigquery


text:
feat: support nvidia-smi timeout

fix #759

Thank you @xmh1011

repo: flashcatcloud/categraf

license: MIT

license_source: github-api


text:
recent alerts submenu

@flavour Please merge

Does this really need a separate menu entry?
I would have thought that the default Alerts list would make sense sorted to have the most recent alerts 1st and that it not being too busy should be sufficient, but can easily have an 'Expired/Unexpired filter on it if-required.
To me the title of the menu entry is misleading compared to the filter applied - this isn't "recent" alerts, but rather "unexpired" alerts...

this is as per L64 of https://docs.google.com/spreadsheets/d/1N9xUqZQhignq7QM_7CtrV4zv86sq4lMdJj81IQuch3Y/edit#gid=0
"the expire date of alert less than now" isn't the recent alerts?

I think this is a mistake in the specs: recent alerts would be expires > today, not expires < today.

Saying that because according to the spec item, recent alerts = active alerts - but expires < today selects expired alerts.
It also says "at least" recent alerts, but it doesn't explicitly disallow "all alerts with the most recent on top", which may be more useful.

Meaning: you could list all alerts, with the most recent on top, and set expires >= today as filter default.
Then the menu item would show only recent alerts at first (and the most recent on top), but the user could modify this filter to select more (or "clear filter" to show all alerts), and also alter the sorting.
By contrast, with s3.filter the user would need to switch to a different page to extend to older alerts.

Filter default example here:
https://github.com/flavour/eden/blob/master/modules/templates/CRMT/config.py#L633

Btw - with this definition it should be "Active Alerts" or "Current Alerts" not "Recent Alerts".
You can also just put the default filter into the menu item analogous to "Active Missions" in RDRT:
https://github.com/flavour/eden/blob/master/modules/templates/IFRC/menus.py#L393
Then you don't need a separate controller, and the user can still modify the filter to also see expired alerts.

Yes, so Dominic is echoing what I am saying, with some further refinements:

(The menu entry as it stands has the wrong name)
Rather than having this menu item at all, it would be better to simply have this be the default view for the main Alerts list:
Sort with most recent at the top
Include a Filter to select expired or not
Have this filter default to just showing unexpired (which can be done most easily with the URL filter in the menu link)

authors: biplovbhandari flavour nursix

repo: flavour/eden


text:
update or update_async need ignore self.page is None

Description

Code example to reproduce the issue:
(paste your program here)

Describe the results you received:

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):
Flet version (pip show flet):
(paste your output here)

Give your requirements.txt file (don't pip freeze, instead give direct packages):
(The requirements)

Operating system:

Additional environment details:

Invalid issue !
Please provide necessary details.

source: gharchive/issue

repo: flet-dev/flet


text:
keep re-connecting just after starting on ubuntu 22.04

Keep re-connecting just after starting on ubuntu 22.04
I just start a tutorial code:

import flet as ft

def main(page: ft.Page):

    page.title = "Flet counter example"
    page.vertical_alignment = ft.MainAxisAlignment.CENTER

    txt_number = ft.TextField(value="0", text_align=ft.TextAlign.RIGHT, width=100)

    def minus_click(e):
        txt_number.value = str(int(txt_number.value) - 1)
        page.update()

    def plus_click(e):
        txt_number.value = str(int(txt_number.value) + 1)
        page.update()

    page.add(
        ft.Row(
            [
                ft.IconButton(ft.icons.REMOVE, on_click=minus_click),
                txt_number,
                ft.IconButton(ft.icons.ADD, on_click=plus_click),
            ],
            alignment=ft.MainAxisAlignment.CENTER,
        )
    )

ft.app(target=main,view=ft.WEB_BROWSER)

and got :

and keeping without ending
debug
And I debug step by step, the broken point at flet.py's return line:

    flet_env = {**os.environ}

    if hidden:
        flet_env["FLET_HIDE_WINDOW_ON_START"] = "true"

    # execute process
    return subprocess.Popen(args, env=flet_env) # line 447

the args:

args
['/home/xxx/.flet/.../flet/flet', 'http://127.0.0.1:38273']
special variables:
function variables:
0: '/home/xxx/.flet/bin/flet-0.2.4/flet/flet'
1: 'http://127.0.0.1:38273'
len(): 2

os and package version

ubuntu 22.04
python 3.10
flet: 0.2.4

Have solved by replace ~/.flet/bin/fletd-xxx/fletd.  Thanks!

I am also facing the same issue. Please solve it, developers.

authors: ChengFengGu HYK-X


text:
Update animatedswitcher.md

fix transition type from CALE to SCALE

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks!
AnimatedSwitcherTransition needs to be moved to references/types similar to other enums. Will you like to do it?
(No worries, if that's you can't.)

Will be resolved by #287

authors: CLAassistant guyuedumingx ndonkoHenri

repo: flet-dev/website


text:
No longer working on Safari 13

Process:               Safari [18629]
Path:                  /Applications/Safari.app/Contents/MacOS/Safari
Identifier:            com.apple.Safari
Version:               13.1 (15609.1.20.111.8)
Build Info:            WebBrowser-7609001020111008~2
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Safari [18629]
User ID:               501
Date/Time:             2020-10-09 10:26:42.738 -0700
OS Version:            Mac OS X 10.15.4 (19E287)
Report Version:        12
Bridge OS Version:     4.4 (17P4281)
Anonymous UUID:        7B24D99D-2F23-B5EF-6725-070CBA32C40E
Sleep/Wake UUID:       46667986-6008-4BE6-BAFF-15E38949A6CF
Time Awake Since Boot: 750000 seconds
Time Since Wake:       740000 seconds
System Integrity Protection: enabled
Crashed Thread:        10  Dispatch queue: com.apple.root.background-qos
Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_NSCoreDataTaggedObjectID isFileURL]: unrecognized selector sent to instance 0x4b'
terminating with uncaught exception of type NSException
abort() called
Any ideas how to fix this? Thank you!

Did you ever figure out how to fix this? From the error message it looks like there might be a file path in your pass JSON that isn't valid.
I have successfully used the library recently without any crashes, so I think this one is specific to one use case. If we get more info, happy to reopen this one.

repo: flexible-agency/php-pkpass


text:
Response headers not getting filtered

In the following code snipped in FilterInterceptor.java
    @Override
    public void sendHeaders(final Metadata responseHeaders) {
    Context previous = attachContext(contextWithHeaders);   // attaching headers to gRPC context
    try {
        filters.forEach(filter -> filter.doProcessResponseHeaders(responseHeaders));
        super.sendHeaders(headers);
    } finally {
        detachContext(contextWithHeaders, previous);    // detach headers from gRPC context
    }
}

The call super.sendHeaders(headers) is sending the request headers back in response. Instead, the call should send super.sendHeaders(responseheaders)

Raised a PR for the fix - https://github.com/flipkart-incubator/grpc-jexpress/pull/32

Raised a PR for the fix - https://github.com/flipkart-incubator/grpc-jexpress/pull/32

repo: flipkart-incubator/grpc-jexpress


text:
Discord bot integration

Overview

Discord Server and voice channel list
Once you have connected to your Discord account, you will see a list on the right of all the Discord servers that the party host is on and that the Discord bot has access to. A BOT badge indicates if the bot is in a particular channel, while blue means the bot is part of the host's instance and red means the bot is part of an other party's instance. These states are synchronised between all player instances in real time.

Join multiple channels
The bot is able to join and play the player party's queue to multiple discord voice channels.
Play, pause and resume button
If there is a track in the queue, the play button can be used to start or resume playback of a track, and the pause button can be used to pause the playback of a track. The button can only be interacted with if there is a track in the queue.
Once the queue is empty, the pause button becomes a non-interactive play button.
The transition between the play and pause buttons is animated. :)

I'm getting an invalid form body error when clicking login with discord, any idea why?

This is most likely because the config file is not set up. As a result, the client id required for discord oauth is missing.

authors: flo-bit thaleius

repo: flo-bit/youtube-party-dj


text:
[utils/dom] Why is webkit excluded from filter check

https://github.com/floating-ui/floating-ui/blob/6b12fdef95d7b09f276816ce9aead601be55204d/packages/utils/dom/src/index.ts#L71
It seems like WebKit has supported filter for some time now, what causes Floating UI to exclude it in this check?

Safari is weird about what CSS properties create a containing block: https://github.com/floating-ui/floating-ui/pull/2336
Also Chrome up until some recent version also ignored filter, it used to be a Firefox-only thing.

Interesting, it appears that this delta is what causes Safari to do this:

And Chrome/Firefox to do this:

Note that the shadows on these elements are created via filter, which seems to be the only difference when walking the positioning code between the two.

Maybe it changed in a recent Safari version or there's an unconsidered edge case. What version is being used?

Currently working with Version 16.4 (18615.1.26.110.1). I've another system that might have a slightly older version and will check into that later.

Can you post a reproduction? Adding filter to the containing block tests doesn't reveal problems in Safari with raw positioning, but it looks like in your example there's a problem with clipping detection instead?

I don't doubt there's a possible issue here, but going to close without a repro :)

authors: Westbrook atomiks

repo: floating-ui/floating-ui


text:
sokol_imgui update necessary for Dear ImGui v1.91.4

Dear Imgur changed the ImTextureID type from void* to uint64_t so an update of sokol_imgui.h is necessary. I created a PR for this: #1134.
It doesn't build at the moment because the referenced cimgui repo must be updated, too. I don't want to mess with your repos too much, so I leave that to you.

Looking into this now...

Ok #1134 has been merged. Thanks!

authors: DctrNoob floooh

repo: floooh/sokol

license: Zlib


text:
Error:  + aSource + '" is not in the SourceMap.

I'm using gulp-sass and just a "few" other packages. I get this error when trying to use gulp-sourcemaps. I run gulp and my styles task errors out. I tried disabling autoprefixer and that doesn't work. As for the note about prefixer.scss not being in the sourcemap that's odd, because the file is present, I'm just not clear on exactly what's going on and hoping someone can shed some light here for me. As far as I know everything that should be there is there...
Thanks. =)
Error after running gulp:
/Users/Alex/Documents/Websites/somelikeitneat.dev/wp-content/themes/somelikeitneat/node_modules/gulp-minify-css/node_modules/vinyl-sourcemaps-apply/node_modules/source-map/lib/source-map/source-map-consumer.js:415
      throw new Error('"' + aSource + '" is not in the SourceMap.');
            ^
Error: "/bower_components/bourbon/app/assets/stylesheets/addons/_prefixer.scss" is not in the SourceMap.
  at SourceMapConsumer_sourceContentFor [as sourceContentFor] (/Users/Alex/Documents/Websites/somelikeitneat.dev/wp-content/themes/somelikeitneat/node_modules/gulp-minify-css/node_modules/vinyl-sourcemaps-apply/node_modules/source-map/lib/source-map/source-map-consumer.js:415:13)
  at SourceMapGenerator.<anonymous> (/Users/Alex/Documents/Websites/somelikeitneat.dev/wp-content/themes/somelikeitneat/node_modules/gulp-minify-css/node_modules/vinyl-sourcemaps-apply/node_modules/source-map/lib/source-map/source-map-generator.js:233:42)

Packages:
    "browser-sync": "^2.4.0",
    "gulp": "^3.8.11",
    "gulp-autoprefixer": "^2.1.0",
    "gulp-cache": "^0.2.8",
    "gulp-coffee": "^2.3.1",
    "gulp-combine-media-queries": "^0.1.0",
    "gulp-concat": "^2.5.2",
    "gulp-consolidate": "^0.1.2",
    "gulp-filter": "^2.0.2",
    "gulp-ignore": "^1.2.1",
    "gulp-imagemin": "^0.6.2",
    "gulp-jshint": "^1.9.4",
    "gulp-livereload": "^2.1.1",
    "gulp-load-plugins": "^0.6.0",
    "gulp-minify-css": "^0.3.13",
    "gulp-newer": "^0.3.0",
    "gulp-notify": "^2.2.0",
    "gulp-phpcs": "^0.4.0",
    "gulp-plumber": "^0.6.6",
    "gulp-rename": "^1.2.0",
    "gulp-rimraf": "^0.1.0",
    "gulp-ruby-sass": "^1.0.1",
    "gulp-run-sequence": "^0.3.2",
    "gulp-sass": "^1.3.3",
    "gulp-sourcemaps": "^1.5.1",
    "gulp-swig": "^0.7.4",
    "gulp-uglify": "^0.3.2",
    "gulp-util": "^3.0.4",
    "gulp-wp-rev": "0.0.1",
    "gulp-zip": "^2.0.3",
    "swig": "^1.4.2"

Task:
gulp.task('styles', function () {
	return gulp.src([source+'sass/**/*.scss'])
		.pipe(plumber())
		.pipe(sourcemaps.init())
			.pipe(sass({
				// outputStyle: 'compressed',
				outputStyle: 'nested',
				precision: 10
			}))
		.pipe(sourcemaps.write({includeContent: false}))
		.pipe(sourcemaps.init({loadMaps: true}))
		.pipe(autoprefixer('last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1', 'ios 6', 'android 4'))
		.pipe(sourcemaps.write('/sourcemaps'))
		.pipe(plumber.stop())
		.pipe(gulp.dest(source+'css'))
		.pipe(filter('**/*.css')) // Filtering stream to only css files
		.pipe(cmq()) // Combines Media Queries
		.pipe(reload({stream:true})) // Inject Styles when style file is created
		.pipe(rename({ suffix: '-min' }))
		.pipe(minifycss({keepBreaks:true}))
		.pipe(minifycss({ keepSpecialComments: 0 }))
		.pipe(gulp.dest(source+'css'))
		.pipe(reload({stream:true})) // Inject Styles when min style file is created
		.pipe(notify({ message: 'Styles task complete', onLast: true }))
});

According to the path
[...]/node_modules/gulp-minify-css/node_modules/vinyl-sourcemaps-apply/node_modules/source-map/lib/source-map/source-map-consumer.js
the error happens in gulp-minify-css.

Thanks for the reply. I saw that, too. I went ahead and updated the package I had and still not working. But it is an issue with gulp-minifycss; I replaced it with gulp-uglifycss and it's working just fine now. I can open an issue with the gulpminify css folk.

authors: digisavvy floridoo

repo: floridoo/gulp-sourcemaps

license: isc


text:
Load existing policy and train from checkpoint.

Pull request information

Status: Ready to merge
Kind of changes:  New Feature
Related PR or issue: ? N/A

Use the --checkpoint_path argument to pass the location of a checkpoint from which to resume training.

Pull Request Test Coverage Report for Build 5292

0 of 1 (0.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.009%) to 89.892%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

examples/train.py
0
1
0.0%

Totals

Change from base Build 5270:
-0.009%

Covered Lines:
9000

Relevant Lines:
10012

💛  - Coveralls

authors: coveralls kanaadp

repo: flow-project/flow


text:
Show frame number in the multi-threaded timeline

It would be great to see frame ids of different actions in the multi-threaded timeline. Otherwise it is hard to understand how different threads intervene.

I'm referring the number of the frame in the individual thread timeline.

But yes, overall the idea is to have it as a column in the table.

Yeah, now it make sense, that should be pretty easy to add.

repo: flow-storm/flow-storm-debugger

license: Unlicense


text:
Allow users to edit the bot's response

Add the edit button to allow users to edit the markdown response from the model.

Fixed in #12

repo: flowfree/chatgpt-clone


text:
styled-components - props requirements is lost

Prop validation is not preserved when using styled-components 2 with flow 0.53+.
The test below illustrates:
class CompWithProps extends React.Component<{ foo: string }> {
    render() { return <div />; }
}

const StyledCompWithProps = styled(CompWithProps)``;

// $ExpectError
<CompWithProps />; // missing foo
<CompWithProps foo="hey" />;

// $ExpectError
<StyledCompWithProps />; // missing foo, SHOULD FAIL - but does not
<StyledCompWithProps foo="hey" />;

I have a branch where I've been working on this, but need to update tests across the board. If you're interested in testing it out in the meantime, I have a gist (you can just replace the one in flow-typed or put it wherever you have any local libdefs): https://gist.github.com/kalley/22859a23a70e5800d47e3cdd43ad4fbc

@kalley I've been starting down the path of typing glamorous and I'm stuck on defaultProps. It looks like the existing styled-components libdef and the one you're working on have similar problems to what I'm seeing.
It seems that assigning defaultProps after the declaration of something is special cased in flow so I can't seem to replicate it by doing something like:
class CompWithProps extends React.Component<{ foo: string }> {
    render() { return <div />; }
}

const StyledCompWithProps = styled(CompWithProps)``;
StyledCompWithProps.defaultProps = {foo: 'hi'}

In my glamorous types, no matter what I do, I either get what @jonasi is reporting here--all prop validation is stripped, or I get what I get when I try pulling out your definitions from your gist--setting defaultpProps is ineffective.
try in flow
Is there a way around this or does this actually work in your libdef and I'm just missing something?
Thanks!

@aaronjensen. I don’t think I’ve taken that use case into account as that was not the problem most people were having, but it’s a good one. My version takes care of the case where the compnent you’re wrapping has defaultProps, like:
const MyComponent = ({ foo }: { foo: string }) => <div>{foo}</div>

MyComponent.defaultProps = { foo: 'bar' }

const MyStyledComponent = styled(MyComponent)

I would argue that if you want to define defaultProps on a styled component, that’s a good case for using .attrs. I hadn’t seen anyone setting that on a styled component before.
That said, it still seems a valid use case, and something I can definitely look into attempting to fix in my version. Thanks for the heads up on that. I definitely would like to make the definition better for as many use cases as possible.

I would argue that if you want to define defaultProps on a styled component, that’s a good case for using .attrs. I hadn’t seen anyone setting that on a styled component before.

Right, as it stands, it's one of the recommended approaches in glamorous, but glamorous also has a withProps option that may end up being the only way to get default props working in flow.
But yes, if you figure out an approach that works I'd appreciate hearing about it. Thanks!

Closing in hope #3228 solves the issue.

authors: aaronjensen jonasi kalley pascalduez

repo: flowtype/flow-typed


text:
fix: add flat dependency tree

Idea for #103

#251 is doing the same thing

repo: floydspace/serverless-esbuild


text:
fluentd emits times in seconds

Issue 653 of fluent/fluentd extends times to Fluent::EventTime. fluentd-logger-java apparently does not yet support this.

Yes, this would be a nice feature. Our logs-line are randomly scrambled on every same second. It's not possible to sort events in Kibana in the right order.

I've been developing another fluent-logger Fluency (https://github.com/komamitsu/fluency). This logger supports EventTime (nano second time stamp) now.

Is this feature in any release?
I need to save date-time information up to milliseconds

authors: AixNPanes arittner dbarriguete komamitsu

repo: fluent/fluent-logger-java


text:
Fluentd daemonset not collecting application logs

I have deployed Fluentd daemonset on Kubernetes cluster(centos 7.x) to capture application logs. Its not capturing any application logs. My Elasticsearch server is sitting out side of the K8s cluster and I'm using Fluentd Aggregator to send the logs to Elasticsearch.
fluentd-daemonset-forward.yaml file as follows.
apiVersion: v1
kind: ServiceAccount
metadata:
name: fluentd
namespace: kube-system

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: fluentd
namespace: kube-system
rules:

apiGroups:

""
resources:
pods
namespaces
verbs:
get
list
watch

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: fluentd
roleRef:
kind: ClusterRole
name: fluentd
apiGroup: rbac.authorization.k8s.io
subjects:

kind: ServiceAccount
name: fluentd
namespace: kube-system

apiVersion: apps/v1
kind: DaemonSet
metadata:
name: fluentd
namespace: kube-system
labels:
k8s-app: fluentd-logging
version: v1
spec:
selector:
matchLabels:
k8s-app: fluentd-logging
version: v1
template:
metadata:
labels:
k8s-app: fluentd-logging
version: v1
spec:
serviceAccount: fluentd
serviceAccountName: fluentd
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
nodeSelector:
kubernetes.io/os: linux
containers:
- name: fluentd
image: fluent/fluentd-kubernetes-daemonset:v1.12.4-debian-forward-1.0
env:
- name:  FLUENT_FOWARD_HOST
value: "Elasticsearch IP"
- name:  FLUENT_FOWARD_PORT
value: "24224"
- name: FLUENT_ELASTICSEARCH_SCHEME
value: "http"
resources:
limits:
memory: 200Mi
requests:
cpu: 100m
memory: 200Mi
volumeMounts:
- name: varlog
mountPath: /var/log
# When actual pod logs in /var/lib/docker/containers, the following lines should be used.
- name: dockercontainerlogdirectory
mountPath: /var/lib/docker/containers
readOnly: true
# When actual pod logs in /var/log/pods, the following lines should be used.
##- name: dockercontainerlogdirectory
##  mountPath: /var/log/pods
##  readOnly: true
terminationGracePeriodSeconds: 30
volumes:
- name: varlog
hostPath:
path: /var/log
# When actual pod logs in /var/lib/docker/containers, the following lines should be used.
- name: dockercontainerlogdirectory
hostPath:
path: /var/lib/docker/containers
# When actual pod logs in /var/log/pods, the following lines should be used.
##- name: dockercontainerlogdirectory
##  hostPath:
##    path: /var/log/pods

Are there logs at /var/log/containers/*.log expectedly?

Are there logs at /var/log/containers/*.log expectedly?

Thanks Kenhys for the response. The application logs were not writing to /var/log/containers/*.log. All the logs have been pointed to STDOUT and STDERR. I have updated /etc/sysconfig/docker file with below entry and it started writing the log to /var/log/containers/*.log, that resolved the issue.
OPTIONS='--selinux-enabled --log-driver=json-file --signature-verification=false'

I have followed the below steps.

Check the log-driver
#docker info --format '{{.LoggingDriver}}'

Update "--log-driver" section in  /etc/sysconfig/docker

Reload daemon
#systemctl daemon-reload

Restart Docker service
#systemctl restart docker

Issue resolved, hence closing.

authors: aneeshcts kenhys

repo: fluent/fluentd-kubernetes-daemonset


text:
Use Strftime to improve fixed timestamp performance

Use Strftime instead of Time#strftime improves the performance of time formatting.

@mururu Could you also check this?

repo: fluent/fluentd


text:
add Apache License in file: //pkg/ddc/alluxio/report.go

Ⅰ. Describe what this PR does
This pr is to add apache license in pkg/ddc/alluxio/report.go
Ⅱ. Does this pull request fix one issue?

fixes #XXXX
Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

/assign @TrafalgarZZZ

repo: fluid-cloudnative/fluid


text:
Add plugin/csharp template

This PR requires #342.
A part of #333.

Add new template for the dotnet plugin. It can be used with:
flutter-tizen create -tplugin --platforms=tizen --tizen-language=csharp my_plugin
flutter-tizen create -tplugin --platforms=tizen --tizen-language=cpp  my_plugin
flutter-tizen create -tplugin --platforms=tizen --tizen-language=cpp --example-language=cpp  my_plugin

Add template files to templates/plugin/csharp.
Override createTemplateContext() to provide tizen related context values.
Override generateApp() to change context values.
Use tizenIdentifier instead of androidIdentifier in existing templates.
Add example-language option to create command for the example project of the plugin. (default: csharp)
Fix commands in docs. Details of C# plugin will be updated in other PRs.

Breaking Changes

To create C++ tizen plugin, --tizen-language cpp option is required because the default value of --tizen-language is csharp.

flutter-tizen create -tplugin --platforms=tizen --tizen-language=cpp my_cpp_plugin

@swift-kim What do you think if the default value of --tizen-langauge option is variable?
For example,

csharp if template == app
cpp if template == plugin

I don't mind as long as the fact is clearly documented.

Ok, I changed this PR to use the variable default of --tizen-language option.

authors: WonyoungChoi swift-kim

repo: flutter-tizen/flutter-tizen


text:
Ensure felt build/felt test can be run without Xcode on a Mac

https://github.com/flutter/flutter/issues/105721 removes web tests using the iOS simulator from the LUCI recipe. After this, the web build theoretically doesn't have a direct need for Xcode to be installed anymore. In practice, however, there are still some steps in GN that run and assume Xcode is installed. Harry's changes here (https://github.com/flutter/engine/pull/32510) start to separate out some of these steps, but it may not be a complete fix. We should follow up and ensure
For now, the recipes will be changes so as to install Xcode only if we specify the Xcode version as a dependency in the .ci.yaml. Once we ensure the whole web build and unit tests can be run without Xcode, we can remove this dependency from the .ci.yaml entirely, and Xcode install will not occur during the web_engine CI check without a need to further change any of the LUCI recipes.

@eyebrowsoffire can we close this bug?

This was confirmed fixed a while back.

authors: eyebrowsoffire godofredoc

repo: flutter/flutter


text:
On-Screen key does not show with KeyboardListener

I'm implementing a game for Flutter and wrapping a Grid with KeyboardListener so that I can request focus and handle keypresses according to the game logic. The keyboard is not showing after calling requestFocus() on the KeyboardListener focusNode as shown below.
Steps to Reproduce

Execute flutter run -d EFFF0088-983E-476E-8C0E-562A1BC5A102 or on real device
Tap on "press here"

Expected results:

expected keyboard to show when calling  _keyboardShortcutsFocus.requestFocus(); in initState()
expected keyboard to show when calling  _keyboardShortcutsFocus.requestFocus(); in onTap()

Actual results:

keyboard does not show on .requestFocus();
also keyboard does not show while in the app when pressing Cmd-K on simulator while it shows in other ios apps like Notes

Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const KeyListenerTest());
}

class KeyListenerTest extends StatefulWidget {
  const KeyListenerTest({Key? key}) : super(key: key);

  @override
  State<KeyListenerTest> createState() => KeyListenerTestState();
}

class KeyListenerTestState extends State<KeyListenerTest> {
  late final FocusNode _keyboardShortcutsFocus = FocusNode();

  @override
  void initState() {
    super.initState();
    _keyboardShortcutsFocus.requestFocus();
  }

  void _handleKeyboardShortcuts(KeyEvent keyEvent) {
    print('on key pressed detected with ${keyEvent.logicalKey.keyLabel}');
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: KeyboardListener(
        autofocus: true,
        focusNode: _keyboardShortcutsFocus,
        onKeyEvent: _handleKeyboardShortcuts,
        child: Scaffold(
          body: Center(
            child: GestureDetector(
              onTap: () {
                print('ontap');
                _keyboardShortcutsFocus.requestFocus();
              },
              child: Text('Press here!'),
            ),
          ),
        ),
      ),
    );
  }
}

flutter doctor -v
[✓] Flutter (Channel stable, 3.3.8, on macOS 12.6 21G115 darwin-x64, locale en)
    • Flutter version 3.3.8 on channel stable at /Users/bashar/work/bin/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 52b3dc25f6 (8 days ago), 2022-11-09 12:09:26 +0800
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/bashar/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] Connected device (3 available)
    • iPhone 8 (mobile) • EFFF0088-983E-476E-8C0E-562A1BC5A102 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-0 (simulator)
    • macOS (desktop)   • macos                                • darwin-x64     • macOS 12.6 21G115 darwin-x64
    • Chrome (web)      • chrome                               • web-javascript • Google Chrome 107.0.5304.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

RUN LOGS:
run.log

Hello @basharh. This is working as expected. KeyboardListener is meant to be used with physical keyboards i.e desktop platforms for example. Here, there is no TextField to focus, and therefore the keyboard is not showing. If you replace the GestureDetector with a TextField, and press CMD + K, the keyboard toggles. Also, if you attach the FocusNode to the TextField and call requestFocus(), the keyboard will show.
Since this is working as expected, I am closing this issue. If you disagree, please comment and I can reopen the issue. Thank you.

@exaby73 What is the suggested solution for mobile in this case? Is it possible for a component like Grid to receive keyboard input on mobile?

Not sure what I can suggest here. You could maybe try having an invisible TextField that helps with entering text (you can directly use TextEditingController instead of manually decoding all key presses) and can also show and hide the keyboard using requestFocus and unfocus respectively.
If you need further help, please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/

Yes, can have invisible TextField, I do it my my app, sth like
    autofocus: true,
    controller: textEditingController,
    keyboardType: TextInputType.streetAddress,
    style: const TextStyle(color: Colors.transparent, fontSize: 8),
    cursorColor: Colors.transparent,
    showCursor: false,
    autocorrect: false,
    enableSuggestions: false,
    maxLines: 1,
    maxLength: 2,
    onEditingComplete: () {},
    textInputAction: TextInputAction.send,
    enableInteractiveSelection: false,
    onChanged: (str) {},
    onTap: () {},
    decoration: const InputDecoration(
        border: InputBorder.none, counterText: ''),
  )

I keep 1 character in the TextField, so I can detect if user presses backspace.

authors: arnirichard basharh exaby73


text:
Update to Xcode 14.2 in flutter/flutter repo

To support iOS 16.2 in the devicelab, update Xcode version to 14.2.  Add cipd package and update .ci.yaml versions.
https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-16_2-release-notes

Uploaded https://chrome-infra-packages.appspot.com/p/flutter_internal/ios/xcode/ios/+/xcode_version:14.2

Also updating Xcode cipd package documentation cl/497040695


text:
Implement TextUnit_Format for ITextRangeProvider

Recently added UIA implementation lacks the case for TextUnit_Format for moving text range endpoints, as our mojom enums currently lack kFormatStart/End. These additions will be necessary in order to support moving text selections by format.

Unassigning until UI is planned.


text:
ModalBottomSheetRoute: Content can't consume top notch with SafeArea

Steps to Reproduce

Execute flutter run on the code sample, choosing a recent iPhone with a camera notch (such as an iPhone 14 Pro)
Tap the "Show sheet" button
Bug: The contents of the sheet aren't padded against the notch at the top, even though I've wrapped them in a SafeArea with top: true.

Expected results: I expected my SafeArea to pad the notch at the top, so my sheet's content isn't hidden.
Actual results: My SafeArea did not pad the notch at the top.
Screen recording:

Code sample: https://github.com/chrisbobbe/modal-bottom-sheet-top-inset-not-paddable
Or paste into a blank project's main.dart:
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Bottom sheet issue'),
        ),
        body: Center(child: Builder(builder: (context) {
          return ElevatedButton(
            onPressed: () => showModalBottomSheet(
              context: context,
              constraints: const BoxConstraints(minHeight: 800),
              useSafeArea: false,
              isScrollControlled: true,
              builder: (BuildContext context) {
                return SafeArea(
                  child: Column(
                    children: List.generate(4, (index) {
                      return MenuItemButton(
                          onPressed: () {},
                          child: Text('MenuItemButton $index'));
                    })));
              }),
            child: const Text('Show sheet'));
        })),
      ),
    );
  }
}

Logs
No errors expected or observed in the logs.

$ flutter analyze
Analyzing scratch...
No issues found! (ran in 1.9s)

$ flutter doctor -v
[✓] Flutter (Channel main, 3.8.0-17.0.pre.27, on macOS 13.0 22A380 darwin-x64, locale
    en-US)
    • Flutter version 3.8.0-17.0.pre.27 on channel main at
      /Users/chrisbobbe/.local/lib/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision a6f7cd0650 (2 days ago), 2023-02-27 16:30:46 -0800
    • Engine revision 8857c39c96
    • Dart version 3.0.0 (build 3.0.0-277.0.dev)
    • DevTools version 2.22.1

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/chrisbobbe/Library/Android/sdk
    • Platform android-33, build-tools 30.0.3
    • ANDROID_HOME = /Users/chrisbobbe/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.75.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 13.0 22A380 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 110.0.5481.177

[✓] Network resources
    • All expected network resources are available.

• No issues found!
chrisbobbe:~/dev/scratch (main)

The culprit is a MediaQuery.removePadding with removeTop: true in ModalBottomSheetRoute, in the case where false is passed for useSafeArea.
As discussed around https://github.com/flutter/flutter/pull/121588#issuecomment-1448969844, this sounds like probably the wrong behavior for all users:

If the useSafeArea: false case isn't actually adding any padding at the top (nor anywhere else), then it doesn't seem like it should be inserting a MediaQuery.removePadding. The latter should generally be a pure accounting matter that tracks the former.

Thanks for the report and potential fix. I am able to replicate it on latest versions.

 stable, master flutter doctor -v
[!] Flutter (Channel stable, 3.7.5, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 3.7.5 on channel stable at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c07f788888 (7 days ago), 2023-02-22 17:52:33 -0600
    • Engine revision 0f359063c4
    • Dart version 2.19.2
    • DevTools version 2.20.1
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.9.0-1.0.pre.9, on macOS 12.2.1 21D62 darwin-x64,
    locale en-GB)
    • Flutter version 3.9.0-1.0.pre.9 on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision a2814a61cb (2 hours ago), 2023-03-01 19:24:18 -0800
    • Engine revision f85e4c6675
    • Dart version 3.0.0 (build 3.0.0-285.0.dev)
    • DevTools version 2.22.2
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13C100
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 65.1.4
    • Dart plugin version 213.7228

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.29.0

[✓] Connected device (3 available)
    • Darshan's iphone (mobile) • 21150b119064aecc249dfcfe05e259197461ce23 • ios
      • iOS 15.3.1 19D52
    • macOS (desktop)           • macos                                    •
      darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)              • chrome                                   •
      web-javascript • Google Chrome 109.0.5414.119

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

As discussed at https://github.com/flutter/flutter/pull/122225#issuecomment-1690729628, I'm closing this as WONTFIX. I've sent #134793 for a docs change that should help people in the absence of a fix.

authors: chrisbobbe darshankawar


text:
Flutter text field not allowing input after clearing form fields and setting focus to it

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
I asked on stack overflow but received no help. I have the form below. The radio button selection defaults to Check Out when the form opens. When the user changes it to the other radio button, the form fields should clear and the focus should be set to the location field and allow input immediately.
When I open the form and select Check In (i.e. the other button), the form switches focus to the location field and lets me enter stuff like normal. However, if I then switch to the Check Out option, the focus still appears to be on the location field but when I try to type stuff nothing shows up. And then when I select Check In again, the same thing happens - it doesn't let me enter anything. Maybe I'm doing something wrong, but it seems as though requesting focus more than once in a row before typing anything is buggy.
Form open:

Selecting the Check In option (focus switches to location field and I'm able to start typing immediately):

Selecting the Check Out option (location field clears, cursor still appears on it, but when I type stuff nothing shows up):

Expected results
The user should be able to start typing immediately into the location field, no matter how many times the Check In or Check Out buttons are selected.
Actual results
You can only start typing the first time you switch the radio button, but if you do it more than once the cursor stays blinking on the location field and you can't type anything in there.
Code sample
Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

enum CheckInOutType { checkIn, checkOut }

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  CheckInOutType? selectedCheckInOut = CheckInOutType.checkOut;
  final locController = TextEditingController();
  late FocusNode locFocusNode; // = FocusNode();

  @override
  void initState() {
    super.initState(); //Run this first
    initialize();
  }

  @override
  dispose() {
    super.dispose(); //Run this last
    locFocusNode.dispose();
  }

  void initialize() async {
    locFocusNode = FocusNode();
  }

  void clearFields() {
    locController.text = '';
    locFocusNode.requestFocus();
    setState(() {

    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text('Overflow Inventory'),
          centerTitle: true,
          leading: IconButton(
            icon: const Icon(Icons.arrow_back),
            onPressed: () {
              Navigator.pop(context);
            },
          ),
        ),
        body: Column(
          children: [
            Row(
              children: [
                Expanded(
                  flex: 1,
                  child: ListTile(
                    title: const Text('Check In'),
                    leading: Radio<CheckInOutType>(
                      value: CheckInOutType.checkIn,
                      groupValue: selectedCheckInOut,
                      onChanged: (CheckInOutType? value) {
                        setState(() {
                          selectedCheckInOut = value;
                        });
                        clearFields();
                      },
                    ),
                  ),
                ),
                Expanded(
                  flex: 1,
                  child: ListTile(
                    title: const Text('Check Out'),
                    leading: Radio<CheckInOutType>(
                      value: CheckInOutType.checkOut,
                      groupValue: selectedCheckInOut,
                      onChanged: (CheckInOutType? value) {
                        setState(() {
                          selectedCheckInOut = value;
                        });
                        clearFields();
                      },
                    ),
                  ),
                ),
              ],
            ),
            Row(
              children: [
                Expanded(
                    child: Text('${selectedCheckInOut == CheckInOutType.checkOut ? 'From' : 'To'} Location:', style: const TextStyle(fontSize: 18, fontWeight: FontWeight.w700))
                ),
                Expanded(
                    child: TextField(
                      focusNode: locFocusNode,
                      controller: locController,
                    )
                ),
              ],
            ),
          ],
        ),
      );
  }
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
cd bug
flutter run

Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.10.5, on Microsoft Windows [Version 10.0.19045.3448], locale en-US)
    • Flutter version 3.10.5 on channel stable at C:\Users\User\StudioProjects\Resources\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 796c8ef792 (5 months ago), 2023-06-13 15:51:02 -0700
    • Engine revision 45f6e00911
    • Dart version 3.0.5
    • DevTools version 2.23.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at C:\Users\User\AppData\Local\Android\sdk
    X cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2022.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)

[√] VS Code (version 1.81.0)
    • VS Code at C:\Users\User\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (4 available)
    • CK65 (mobile)     • 21271D877E • android-arm64  • Android 11 (API 30)
    • Windows (desktop) • windows    • windows-x64    • Microsoft Windows [Version 10.0.19045.3448]
    • Chrome (web)      • chrome     • web-javascript • Google Chrome 119.0.6045.160
    • Edge (web)        • edge       • web-javascript • Microsoft Edge 119.0.2151.44

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

I checked this issue on my device Realme 6, Android 11 but can't reproduce it. I can enter the text even if switching to Check In or Check Out radio button.
Can you try on the latest flutter stable channel to see if it works?

flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.16.0, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.16.0 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db7ef5bf9f (8 hours ago), 2023-11-15 11:25:44 -0800
    • Engine revision 74d16627b9
    • Dart version 3.2.0
    • DevTools version 2.28.2

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio Giraffe.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[!] Android Studio (version unknown)
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to determine Android Studio version.
    • Java version OpenJDK Runtime Environment (build 17.0.8+0-17.0.8b1000.22-10799086)

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.84.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.76.0

[✓] Connected device (3 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64  • Android 11 (API 30)
    • macOS (desktop)  • macos            • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)     • chrome           • web-javascript • Google Chrome 119.0.6045.123

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.17.0-12.0.pre.37, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.17.0-12.0.pre.37 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 889c08368c (14 minutes ago), 2023-11-20 21:51:37 -0500
    • Engine revision f3e9b38a25
    • Dart version 3.3.0 (build 3.3.0-152.0.dev)
    • DevTools version 2.30.0-dev.4
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio Giraffe.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[!] Android Studio (version unknown)
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to determine Android Studio version.
    • Java version OpenJDK Runtime Environment (build 17.0.8+0-17.0.8b1000.22-10799086)

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.84.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.76.0

[✓] Connected device (4 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D                         • android-arm64  • Android 11 (API 30)
    • iPhone (mobile)  • d9a94afe2b649fef56ba0bfeb052f0f2a7dae95e • ios            • iOS 15.7.9 19H365
    • macOS (desktop)  • macos                                    • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)     • chrome                                   • web-javascript • Google Chrome 119.0.6045.159

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

@huycozy ok that worked, thanks for your help! I upgraded from Flutter version 3.10.5 to the latest using Flutter upgrade --force and now I don't have that problem on 3.16.0. Now I just have a new problem that all my visuals changed! Lol but I guess I can work through that

Thanks for your confirmation. Closing this as fixed on the recent Flutter versions.

authors: APTGithubAcct huycozy


text:
Execution failed for task ':app:compileFlutterBuildDebug'.

          [log.txt](https://github.com/flutter/flutter/files/8121543/log.txt)

I attached the log, and it seems it worked properly, then I build output! IT WORKS! Thanks @danagbemava-nc for your cooperation and help, you were really cooperative.
Originally posted by @Omar8345 in https://github.com/flutter/flutter/issues/98823#issuecomment-1048403098
--------------------------------
Hi bro how are you
I encountered this error, how did you fix it, can you guide me?

Hi @mehrab-heidary
When opening a new issue, please try to provide all information indicated in the template so that we can address the issue properly (See bug issue template here)
Closing this issue, since no information has been provided. Once you update the issue with more information, please write in the comments and I will re-open this for further investigation.

I'm sorry, my friend has the same problem, that's why I tagged him.
I read their problems completely, just like ours, I get the same error. They say that the problems are fixed, but they don't say how to fix this problem.
When I press the run button in Android Studio, the error that I put in file 1 is displayed in the header of the debug console, and when I enter the command flutter run -v  in CMD, I encounter the error that I put in file 2. I don't know how to solve the problem. To solve it, my Flutter source is the latest version and Android Studio is also the latest version, but I am facing this error.
1.txt
2.txt
Everything is installed correctly but I get this error.
cmd: flutter doctor -v
C:\Users\Mehrab>flutter doctor -v
[√] Flutter (Channel stable, 3.22.0, on Microsoft Windows [Version 10.0.19045.4412], locale en-US)
• Flutter version 3.22.0 on channel stable at C:\SdkFlutter\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 5dcb86f68f (13 days ago), 2024-05-09 07:39:20 -0500
• Engine revision f6344b75dc
• Dart version 3.4.0
• DevTools version 2.34.3
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\Mehrab\AppData\Local\Android\sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.10+0--11572160)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2023.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.10+0--11572160)
[√] Connected device (4 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
• Windows (desktop)       • windows       • windows-x64    • Microsoft Windows [Version 10.0.19045.4412]
• Chrome (web)            • chrome        • web-javascript • Google Chrome 125.0.6422.76
• Edge (web)              • edge          • web-javascript • Microsoft Edge 125.0.2535.51
[√] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.

I'll check ASAP

@mehrab-heidary I re-open this issue for further investigation. Could you try to see if the issue persists on a new Flutter project (the empty one without adding plugins/packages)?

authors: Omar8345 huycozy mehrab-heidary


text:
Cannot run gallery on Android in beta

Steps to Reproduce

cd ~/tmp
git clone -b beta https://github.com/flutter/flutter.git
cd ~/tmp/examples/flutter_gallery/
~/tmp/flutter/bin/flutter build apk

=>
Resolving dependencies...
* Error running Gradle:
Exit code 1 from: /Users/mit/tmp/flutter/examples/flutter_gallery/android/gradlew app:properties:

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/mit/tmp/flutter/examples/flutter_gallery/android/app/build.gradle' line: 20

* What went wrong:
A problem occurred evaluating project ':app'.
> 3

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s

Please review your Gradle project setup in the android/ folder.

Removing TODAY label since this shouldn't block internal rolls (it's already fixed at tip-of-tree).  I'm working on pushing a new beta release.

+1 for pushing 0.1.5 to beta if it's ready

Added 0.0.23-0.1.4 to https://github.com/flutter/flutter/wiki/Bad-Builds

v0.1.5 has been pushed to beta.

authors: mit-mit tvolkert xster


text:
showDialog doesn't have "builder" property

Steps to Reproduce
showDialog<Null>(
      context: context,
      builder: (BuildContext context) {
        return new AlertDialog(
          content: const Text('You tapped the floating action button.'),
          actions: <Widget>[
            new FlatButton(
              onPressed: () {
                Navigator.pop(context);
              },
              child: const Text('OK')
            )
          ],
        );

  },
);

Logs
flutter run
Launching lib/main.dart on SM N750 in debug mode...
Initializing gradle...                                2.5s
Resolving dependencies...                             6.1s
Running 'gradlew assembleDebug'...                   23.1s
Built build\app\outputs\apk\debug\app-debug.apk (24.6MB).
I/FlutterActivityDelegate(20280): onResume setting current activity to this
E/flutter (20280): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter (20280): NoSuchMethodError: The method 'call' was called on null.
E/flutter (20280): Receiver: null
E/flutter (20280): Tried calling: call()
E/flutter (20280): #0      Object.noSuchMethod (dart:core-patch/dart:core/object_patch.dart:46)
E/flutter (20280): #1      _startIsolate. (dart:isolate-patch/dart:isolate/isolate_patch.dart:279)
E/flutter (20280): #2      _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)
Syncing files to device SM N750...                    6.4s
🔥  To hot reload your app on the fly, press "r". To restart the app entirely, press "R".
An Observatory debugger and profiler on SM N750 is available at: http://127.0.0.1:8101/
For a more detailed help message, press "h". To quit, press "q".
D/mali_winsys(20280): new_window_surface returns 0x3000,  [720x1280]-format:1
D/SRIB_DBQ(20280): SurfaceView:updateWindow: viewRoot.sSVBufferCount=-1 mSVBufferCount=-1
I/FlutterActivityDelegate(20280): onResume setting current activity to this
I/Timeline(20280): Timeline: Activity_idle id: android.os.BinderProxy@207b0d7a time:6227739
flutter analyze
Analyzing M:\Work\Projects\FlutterTestApp\startup_namer...
error - The named parameter 'builder' isn't defined at lib\main.dart:68:7 - undefined_named_parameter
error - The constructor returns type 'dynamic' that isn't of expected type 'Widget' at test\widget_test.dart:15:29 - strong_mode_invalid_cast_new_expr
error - Undefined class 'MyApp' at test\widget_test.dart:15:33 - undefined_class
warning - The parameter 'child' is required at lib\main.dart:66:5 - missing_required_param
hint - Unused import: 'package:startup_namer/main.dart' at test\widget_test.dart:10:8 - unused_import
5 issues found.
(Ran in 14.9s)
Flutter Doctor
[√] Flutter (Channel beta, v0.1.5, on Microsoft Windows [Version 10.0.16299.309], locale en-US)
• Flutter version 0.1.5 at M:\Work\flutter
• Framework revision 3ea4d06340 (3 weeks ago), 2018-02-22 11:12:39 -0800
• Engine revision ead227f118
• Dart version 2.0.0-dev.28.0.flutter-0b4f01f759
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at M:\Work\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = M:\Work\Android\sdk
• Java binary at: M:\Work\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[√] Android Studio (version 3.0)
• Android Studio at M:\Work\Android\Android Studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[!] IntelliJ IDEA Community Edition (version 2017.3)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins
[√] Connected devices (1 available)
• SM N750 • 192.168.100.2:5555 • android-arm • Android 5.1.1 (API 22)
! Doctor found issues in 1 category.
So yeah, both in demo and doc has builder property in the AlertDialog, which I have none. The code on the top is copied from the docs / demo. How to fix it?

@moseskarunia the builder property exists on version 0.2.2 and greater.  You are currently on the beta branch version 0.1.5 which doesn't have this update.
Instead of builder, use the child parameter.
showDialog(child: new MyWidget(), context: context);

Also see the changelog for major breaking changes and updates at each version.

Any plan on when it will be rolled to beta?

@moseskarunia No announced dates yet, stay tuned.

This has been rolled to beta now.

authors: Hixie jonahwilliams moseskarunia


text:
checked mode needs a visual indicator

First thing that came to mind is one of the corners could have a red tag. Even just a few pixels would help me look at someones screen and not have to ask "is that in checked mode?" (i.e. should I care that it's slow?)
Maybe a red check-mark? :heavy_check_mark:
@Hixie @apwilson

authors: Hixie eseidelGoogle


text:
cloud_firestore: DocumentSnapshot.data['email'] returns null

Steps to Reproduce
import 'package:flutter/material.dart';
import 'package:stepify/constants/colors.dart';
import 'package:flutter_redux/flutter_redux.dart';
import 'package:stepify/models/app_state.dart';
import 'package:redux/redux.dart';
import 'package:cloud_firestore/cloud_firestore.dart';

class DrawerContainer extends StatelessWidget {
  DrawerContainer({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return new StoreConnector<AppState, _ViewModel>(
      converter: _ViewModel.fromStore,
      builder: (BuildContext context, _ViewModel vm) {
        return new Drawer(
          child: Column(
            children: <Widget>[
              UserAccountsDrawerHeader(
                decoration: BoxDecoration(color: MeSuiteColors.blue),
                accountName: new Text(vm.currentUser.data['displayName']),
                accountEmail: new Text(vm.currentUser.data['email'] ?? "unknown"),
                currentAccountPicture: Icon(
                  Icons.account_circle,
                  size: 50.0,
                  color: Colors.white,
                ),
              )
            ]
          )
        );
      },
    );
  }
}

class _ViewModel {

  final DocumentSnapshot currentUser;

  _ViewModel({@required this.currentUser});

  static _ViewModel fromStore(Store<AppState> store) {
    return new _ViewModel(
      currentUser: store.state.currentUser,
    );
  }
}

vm.currentUser.data['email'] returns a null value!
Seems like the user email value isn't retrieved from Firebase. Firebase provides this according to - https://firebase.google.com/docs/reference/js/firebase.UserInfo#email

Firebase provides this

but is it guaranteed to have a value != null?

@zoechi no, but I’m using google auth along with it, so the field should be populated from prior experience - side note, the vanilla JS library pulls the email so it seems like a plugin-specific issue

Oops, I messed up the auth flow at a point and didn't create a full copy of the currentUser returned by Firebase into Cloud Firestore

@rishab2113
This issue has been moved to https://github.com/FirebaseExtended/flutterfire/issues/439. Any further collaboration will be done there.

authors: kroikie rishab2113 zoechi


text:
Underlines in tab titles can set themselves to an incorrect width, do not initially smoothly animate

They start off correct, but if I start swiping to the side, the underline jumps to its target width (it doesn't smoothly animate), and then if I don't complete the swipe, and let the current view/panel fall back into place, the underline stays too wide.
Here's a picture of the app "resting":

Here's a movie that shows this in action: https://dl.dropboxusercontent.com/u/316685/VID_20160328_140548.mp4

cc @mpcomplete

~/Code/flutter/examples/material_gallery[master*] $ flutter --version
Flutter on channel master (from git@github.com:flutter/flutter.git)
Framework revision cc9b140 (4 hours ago); engine revision f790903

I spent some time looking at this, and I think it has to do with an inconsistency with how we treat the animation's completion value. Some places define the range as "0.0 = tab to left of selected tab, 0.5 = selected tab, 1.0 = tab to right of selected tab", while others define "0.0 = selected tab, 1.0 = next tab in whichever direction the animation is headed". I got confused about why we have this distinction and gave up. @HansMuller might remember why we did it this way.

I believe that if you're dragging the TabBarView then you are varying the animation value between 0.0 - 0.5 - 1.0, which implies moving the indicator to the left and right of the selected tab. When we're animating to a new selected tab, then the animation goes from 0.0 to 1.0 and that implies moving the indicator and scrolling (if necessary).
It's been a while so I'll check to see what I remember matches the current implementation.

Yeah, I think you're right. It seems unnecessarily confusing to me, since the code has to understand the two different states. Would it make sense if the TabBarView varied from 0.0 to 1.0 as well, where 0.0 is always "selected tab", and 1.0 changes based on the direction of the scroll?

I'm not sure. If we have tabs A B C D and is B currently selected then dragging from B towards C means varying the animation value from 0.0 to 1.0. Changing direction just reduces the animation value towards 0.0.  Dragging between B and A would be similar. So to interpret the animation's value you need to know that you're dragging and which side of the selected tab you're on.

Updated slow-mo movies:
Gallery app: https://dl.dropboxusercontent.com/u/316685/for-github-issues/IMG_0008.MOV
(notice the quick jump of the underline)
Play News app: https://dl.dropboxusercontent.com/u/316685/for-github-issues/IMG_0009.MOV
(notice the underline smoothly animates to its final length)

authors: HansMuller mpcomplete sethladd


text:
[dashboard] run all benchmarks in --profile mode

We currently run in --no-checked --debug mode, which is not giving us real numbers.

Note: this is currently blocked because Mac hosts are not supported for Android --profile.

/cc @chinmaygarde

Reassigning back to myself. I verified locally that this works now. I'll switch the dashboard to profile mode.


text:
TextField contentPadding + Expanded error

Steps to Reproduce

If i don't set contentPadding，it's work right.
preview image
Widget buildSearchBar() {
    return Container(
      decoration: BoxDecoration(
          color: ThemeColor.paper, borderRadius: BorderRadius.circular(15)),
      height: 30,
      child: Row(
        children: <Widget>[
          SizedBox(width: 10),
          Image.asset(
            'img/common/search_icon.png',
            color: Color(0xFFC8C8C8),
            width: 13.0,
            height: 13.0,
          ),
          SizedBox(width: 5),
          Expanded(
            child: TextField(
              autofocus: true,
              controller: _searchController,
              textInputAction: TextInputAction.search,
              inputFormatters: <TextInputFormatter>[
                LengthLimitingTextInputFormatter(50)
              ],
              style: TextStyle(fontSize: 14, color: ThemeColor.darkGray),
              decoration: InputDecoration(
                hintText:
                    localize(_hotKeys != null ? _hotKeys.first : '请输入关键字搜索'),
                hintStyle: TextStyle(color: ThemeColor.gray, fontSize: 14.0),
                border: InputBorder.none,
                contentPadding: EdgeInsets.only(left: 3.0, right: 8.0),
              ),
              onChanged: (String text) {
                if (text.isEmpty) {
                  _associationalWords = [];
                  _searchStatus = SearchStatus.blank;
                } else {
                  _searchStatus = SearchStatus.associational;
                  _subject.add(text);
                }
                setState(() {});
              },
              onSubmitted: (String text) {
                Analytics.event('dd47938eec46a6fd08f9a571d3e60f60');
                search();
              },
              cursorColor: ThemeColor.darkGray,
              cursorWidth: 1.0,
            ),
          ),
          _searchController.text.isEmpty
              ? SizedBox()
              : GestureDetector(
                  onTap: () {
                    _searchController.text = '';
                    _searchStatus = SearchStatus.blank;
                    setState(() {});
                  },
                  behavior: HitTestBehavior.opaque,
                  child: Image.asset('img/common/text_field_clean.png',
                      width: 30, height: 30),
                ),
        ],
      ),
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: createAppBar(
          context: context,
          titleWidget: buildSearchBar(),
          titleSpacing: 0,
          actions: <Widget>[
            Button(
              width: 60.0,
              height: kToolbarHeight,
              margin: EdgeInsets.only(right: 2.0),
              onPressed: search,
              child: createText('搜索',
                  style: TextStyle(color: ThemeColor.primary, fontSize: 16)),
            ),
          ]),
    );
  }

Target Platform: Android
Target OS version/browser: Android Q
Devices: HUAWEI VCE AL00
Logs

No issues found! (ran in 13.2s)

[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.14.6 18G87,
    locale zh-Hans-CN)
    • Flutter version 1.12.13+hotfix.5 at /Users/v7lin/flutter
    • Framework revision 27321ebbad (2 days ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/v7lin/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling
      support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /Users/v7lin/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.2, Build version 11B52
    • CocoaPods version 1.8.4

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 41.1.2
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build
      1.8.0_202-release-1483-b49-5587405)

[!] Android Studio
    • Android Studio at /Applications/Android Studio 4.0 Preview.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)

[✓] IntelliJ IDEA Community Edition (version 2019.1.4)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 36.0.4
    • Dart plugin version 191.8423

[!] VS Code (version 1.40.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • VCE AL00 • JPFDU19523006521 • android-arm64 • Android 9 (API 28)

! Doctor found issues in 2 categories.

Hi @v7lin
the issue seems to occur
when expanded and contentPadding
are used at the same time
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) => MaterialApp(
    home: MyHomePage(),
  );
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) => Scaffold(
    body: Center(
      //child: Expanded(
        child: TextField(
          textInputAction: TextInputAction.search,
          decoration: InputDecoration(
            contentPadding: EdgeInsets.only(left: 3.0, right: 8.0),
          ),
        //),
  ),),);
}

it has same error with
  Widget buildSearchBar() {
    return Container(
      decoration: BoxDecoration(
          color: ThemeColor.paper, borderRadius: BorderRadius.circular(15)),
      height: 30,
      padding: EdgeInsets.only(left: 10),
      child: Stack(
        children: <Widget>[
          Align(
            alignment: Alignment.centerLeft,
            child: Image.asset(
              'img/common/search_icon.png',
              color: Color(0xFFC8C8C8),
              width: 13.0,
              height: 13.0,
            ),
          ),
          Container(
            color: Colors.red,
            margin: EdgeInsets.only(left: 18),
            child: TextField(
              autofocus: true,
              controller: _searchController,
              textInputAction: TextInputAction.search,
              inputFormatters: <TextInputFormatter>[
                LengthLimitingTextInputFormatter(50)
              ],
              style: TextStyle(fontSize: 14, color: ThemeColor.darkGray),
              decoration: InputDecoration(
                hintText:
                    localize(_hotKeys != null ? _hotKeys.first : '请输入关键字搜索'),
                hintStyle: TextStyle(color: ThemeColor.gray, fontSize: 14.0),
                border: InputBorder.none,
                contentPadding: EdgeInsets.only(left: 3.0, right: 8.0),
              ),
              onChanged: (String text) {
                if (text.isEmpty) {
                  _associationalWords = [];
                  _searchStatus = SearchStatus.blank;
                } else {
                  _searchStatus = SearchStatus.associational;
                  _subject.add(text);
                }
                setState(() {});
              },
              onSubmitted: (String text) {
                Analytics.event('dd47938eec46a6fd08f9a571d3e60f60');
                search();
              },
              cursorColor: ThemeColor.darkGray,
              cursorWidth: 1.0,
            ),
          ),
          Align(
            alignment: Alignment.centerRight,
            child: _searchController.text.isEmpty
                ? SizedBox()
                : GestureDetector(
              onTap: () {
                _searchController.text = '';
                _searchStatus = SearchStatus.blank;
                setState(() {});
              },
              behavior: HitTestBehavior.opaque,
              child: Image.asset('img/common/text_field_clean.png',
                  width: 30, height: 30),
            ),
          ),
        ],
      ),
    );
  }

text will be cut
preview error image
  Widget buildSearchBar() {
    return Container(
      decoration: BoxDecoration(
          color: ThemeColor.paper, borderRadius: BorderRadius.circular(15)),
      height: 30,
      child: Row(
        children: <Widget>[
          SizedBox(width: 10),
          Image.asset(
            'img/common/search_icon.png',
            color: Color(0xFFC8C8C8),
            width: 13.0,
            height: 13.0,
          ),
          SizedBox(width: 5),
          Expanded(
            child: Container(
              padding: EdgeInsets.only(left: 3.0, right: 8.0),
              child: TextField(
                autofocus: true,
                controller: _searchController,
                textInputAction: TextInputAction.search,
                inputFormatters: <TextInputFormatter>[
                  LengthLimitingTextInputFormatter(50)
                ],
                style: TextStyle(fontSize: 14, height: 1.0, color: ThemeColor.darkGray),
                maxLines: 1,
                minLines: 1,
                decoration: InputDecoration(
                  hintText:
                  localize(_hotKeys != null ? _hotKeys.first : '请输入关键字搜索'),
                  hintStyle: TextStyle(color: ThemeColor.gray, fontSize: 14.0, height: 1.0),
                  border: InputBorder.none,
//                  contentPadding: EdgeInsets.only(left: 3.0, right: 8.0),
                ),
                onChanged: (String text) {
                  if (text.isEmpty) {
                    _associationalWords = [];
                    _searchStatus = SearchStatus.blank;
                  } else {
                    _searchStatus = SearchStatus.associational;
                    _subject.add(text);
                  }
                  setState(() {});
                },
                onSubmitted: (String text) {
                  Analytics.event('dd47938eec46a6fd08f9a571d3e60f60');
                  search();
                },
                cursorColor: ThemeColor.darkGray,
                cursorWidth: 1.0,
              ),
            ),
          ),
          _searchController.text.isEmpty
              ? SizedBox()
              : GestureDetector(
                  onTap: () {
                    _searchController.text = '';
                    _searchStatus = SearchStatus.blank;
                    setState(() {});
                  },
                  behavior: HitTestBehavior.opaque,
                  child: Image.asset('img/common/text_field_clean.png',
                      width: 30, height: 30),
                ),
        ],
      ),
    );
  }

Have you tried using isDense?
Just mentioning it because this issue was linked from https://github.com/flutter/flutter/issues/44726 which had that solution.  TextField height was increased recently (in https://github.com/flutter/flutter/pull/42449).

yes

Alright then I'll try to reproduce this.  Would you be able to paste a minimal app that reproduces the problem so I can try it out?

The same here. I used 1.10 before bu today I've updated it to v1.12.13+hotfix.5 and got exactly the same problem with all my TextFields.
I'm using InputDecoration like this:
decoration: InputDecoration(
  alignLabelWithHint: true,
//  contentPadding: EdgeInsets.only(top: 1),
  border: InputBorder.none,
  hintText: widget.searchTitle,
),

So if I comment this line out
//  contentPadding: EdgeInsets.only(top: 1),

everything is fine. With this line (regardless of padding value), the text is aligned by bottom, just like a topic starter showed in his screenshot

authors: caseyryan iapicca justinmc v7lin


text:
the fonts are getting blurred in web version.I feel it is not good

Duplicate of https://github.com/flutter/flutter/issues/32274


text:
Fullscreen IME mode doesn't work on Android (text entry in landscape)

Reported by @amarsten via gitter.
https://github.com/flutter/flutter/blob/master/examples/flutter_gallery/lib/demo/text_field_demo.dart
The demo works fine in portrait mode, but if you turn to landscape everything disappears and the scroll-to-avoid-keyboard behavior doesn't seem to work.
@mpcomplete
Here are two screenshots taken one after another, the only difference is rotating the phone:

I'm having a hard time reproducing this on iOS. When rotated, I can see the input fields and use the keyboard, on my iPhone 6S.
But yeah, on Android, I can repro.

I thought this was a recent regression, but it dates all the way back to March (and probably before - I didn't test earlier than that).

This one is pretty complicated. I suspect it never worked.
The issue is with the android fullscreen IME mode. Normally, an IME is attached to an EditText widget. I suspect that Android normally uses this EditText widget to display the input text (which Android calls the "extract UI") during fullscreen mode. We don't have an EditText widget.
Chromium on Android may have to deal with this problem. It's worth seeing how they solved it. If all else fails, Jason recommends building AOSP and instrumenting the base framework code to understand how the full screen IME operates.
One simple thing we could do right now is disable the fullscreen IME mode. This will show the flutter UI in place of the empty extract UI (just like in portrait mode) so at least something is visible.

I think @jason-simmons 's fix is enough to move this out of the top customer requests bucket.

We do not currently plan to provide a full fix for this bug, though we would consider patches if anyone wanted to try to provide a solution.

Closing as no-longer reproducible

authors: Hixie abarth eseidelGoogle guidezpl mpcomplete sethladd


text:
time slot for book appointment

how to create time slot for booking app?? user pick one of time from slot which suit him.

The Github issue tracker is for bugs and features requests for the Flutter SDK. Help and support questions like these are better suited for Q&A sites like StackOverflow or on one of the flutter community sites at https://flutter.dev/community .

authors: Git-Mani jonahwilliams