Skip to content

Commit

Permalink
[flutter_web] clean
Browse files Browse the repository at this point in the history
  • Loading branch information
chen56 committed Jun 13, 2024
1 parent 0a63565 commit 5bc6a60
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import 'package:flutter/material.dart';

main() {
runApp(const MaterialApp(home: Scaffold(body: Input_ButtonStyleButtonExample())));
runApp(const MaterialApp(home: Scaffold(body: Form_ButtonStyleButtonExample())));
}

// ignore: camel_case_types
class Input_ButtonStyleButtonExample extends StatelessWidget {
const Input_ButtonStyleButtonExample({super.key});
class Form_ButtonStyleButtonExample extends StatelessWidget {
const Form_ButtonStyleButtonExample({super.key});

@override
Widget build(BuildContext context) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import 'package:flutter/material.dart';

main() {
runApp(const MaterialApp(home: Scaffold(body: Input_FloatingActionButton())));
runApp(const MaterialApp(home: Scaffold(body: Form_FloatingActionButton())));
}

// ignore: camel_case_types
class Input_FloatingActionButton extends StatelessWidget {
const Input_FloatingActionButton({super.key});
class Form_FloatingActionButton extends StatelessWidget {
const Form_FloatingActionButton({super.key});

@override
Widget build(BuildContext context) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import 'package:flutter/material.dart';

main() {
runApp(const MaterialApp(home: Scaffold(body: Input_IconButton())));
runApp(const MaterialApp(home: Scaffold(body: Form_IconButton())));
}

// ignore: camel_case_types
class Input_IconButton extends StatefulWidget {
const Input_IconButton({super.key});
class Form_IconButton extends StatefulWidget {
const Form_IconButton({super.key});

@override
State<StatefulWidget> createState() {
return _State();
}
}

class _State extends State<Input_IconButton> {
class _State extends State<Form_IconButton> {
bool standardSelected = false;
bool filledSelected = false;
bool outlinedSelected = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ import 'dart:math';
import 'package:flutter/material.dart';

main() {
runApp(const MaterialApp(home: Scaffold(body: Input_SearchAnchor())));
runApp(const MaterialApp(home: Scaffold(body: Form_SearchAnchor())));
}

// ignore: camel_case_types
class Input_SearchAnchor extends StatefulWidget {
const Input_SearchAnchor({super.key});
class Form_SearchAnchor extends StatefulWidget {
const Form_SearchAnchor({super.key});

@override
State<StatefulWidget> createState() {
return _State();
}
}

class _State extends State<Input_SearchAnchor> {
class _State extends State<Form_SearchAnchor> {
final List<String> searchWords = [
"中国 China",
"你好 Hello",
Expand Down
18 changes: 9 additions & 9 deletions notes/flutter_web/lib/routes/notes/cheatsheets/widgets/page.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_web/app.dart';
import 'package:flutter_web/routes/notes/cheatsheets/widgets/_examples/Input_ButtonStyleButton.dart';
import 'package:flutter_web/routes/notes/cheatsheets/widgets/_examples/Input_FloatingActionButton.dart';
import 'package:flutter_web/routes/notes/cheatsheets/widgets/_examples/Input_IconButton.dart';
import 'package:flutter_web/routes/notes/cheatsheets/widgets/_examples/Input_SearchAnchor.dart';
import 'package:flutter_web/routes/notes/cheatsheets/widgets/_examples/Form_ButtonStyleButton.dart';
import 'package:flutter_web/routes/notes/cheatsheets/widgets/_examples/Form_FloatingActionButton.dart';
import 'package:flutter_web/routes/notes/cheatsheets/widgets/_examples/Form_IconButton.dart';
import 'package:flutter_web/routes/notes/cheatsheets/widgets/_examples/Form_SearchAnchor.dart';
import 'package:flutter_web/routes/notes/cheatsheets/widgets/_examples/LayoutCore_ContainerCell.dart';
import 'package:flutter_web/routes/notes/cheatsheets/widgets/_examples/Navigation_AppBar.dart';
import 'package:flutter_web/routes/notes/cheatsheets/widgets/_examples/Navigation_BottomAppBar.dart';
Expand Down Expand Up @@ -48,11 +48,11 @@ void build(BuildContext context, Cell print) {
Level1MasonryLayout(title: "布局,Layout", cellWidth: 500, children: [
FlutterExample(title: "Container", source: assets.lib_routes_notes_cheatsheets_widgets__examples_LayoutCore_ContainerCell_dart, child: const LayoutCore_ContainerCell()),
]),
Level1MasonryLayout(title: "button&input&form", cellWidth: 500, children: [
FlutterExample(title: "ButtonStyleButton", source: assets.lib_routes_notes_cheatsheets_widgets__examples_Input_ButtonStyleButton_dart, child: const Input_ButtonStyleButtonExample()),
FlutterExample(title: "FloatingActionButton", source: assets.lib_routes_notes_cheatsheets_widgets__examples_Input_FloatingActionButton_dart, child: const Input_FloatingActionButton()),
FlutterExample(title: "IconButton", source: assets.lib_routes_notes_cheatsheets_widgets__examples_Input_IconButton_dart, child: const Input_IconButton()),
FlutterExample(title: "SearchAnchor", source: assets.lib_routes_notes_cheatsheets_widgets__examples_Input_SearchAnchor_dart, child: const Input_SearchAnchor()),
Level1MasonryLayout(title: "form&button&input", cellWidth: 500, children: [
FlutterExample(title: "ButtonStyleButton", source: assets.lib_routes_notes_cheatsheets_widgets__examples_Form_ButtonStyleButton_dart, child: const Form_ButtonStyleButtonExample()),
FlutterExample(title: "FloatingActionButton", source: assets.lib_routes_notes_cheatsheets_widgets__examples_Form_FloatingActionButton_dart, child: const Form_FloatingActionButton()),
FlutterExample(title: "IconButton", source: assets.lib_routes_notes_cheatsheets_widgets__examples_Form_IconButton_dart, child: const Form_IconButton()),
FlutterExample(title: "SearchAnchor", source: assets.lib_routes_notes_cheatsheets_widgets__examples_Form_SearchAnchor_dart, child: const Form_SearchAnchor()),
FlutterExample(title: "segmentButton", child: buttonAndInput.segmentButtonCell()),
FlutterExample(title: "Checkbox", child: buttonAndInput.checkbox()),
FlutterExample(title: "CheckboxListTile", child: buttonAndInput.checkboxListTile()),
Expand Down

0 comments on commit 5bc6a60

Please sign in to comment.