[go: up one dir, main page]

Skip to content

Instantly share code, notes, and snippets.

@Aaron009
Aaron009 / main.dart
Last active December 27, 2019 12:03
When I scroll to the second page, the tab does not switch automatically? When I click on the tab item, the page view below does not switch automatically? Why?
import 'package:flutter/material.dart';
import 'dart:math' as math;
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
@Aaron009
Aaron009 / main.dart
Last active December 27, 2019 09:54
Flutter Called setState and rebuilt, but the UI has not changed?
//This is probably my own problem, but I don't know what caused it , how to solve it.
//example:
//Clicking on the blue circle button, clicking on it will add a tabitem, but now clicking it will not respond.
import 'dart:math';
import 'package:flutter/material.dart';
void main() {
runApp(
@Aaron009
Aaron009 / main.dart
Created December 21, 2019 08:32
Container包含Container出现的问题。
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(),