Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused title generation #3006

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkgs/dartpad_ui/lib/model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class AppServices {
appModel.sourceCodeController.text = source;

// Reset the title.
appModel.title.value = generateSnippetName();
appModel.title.value = '';

// Reset the console.
appModel.clearConsole();
Expand Down
4 changes: 0 additions & 4 deletions pkgs/dartpad_ui/lib/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import 'dart:async';
import 'package:collection/collection.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:fluttering_phrases/fluttering_phrases.dart'
as fluttering_phrases;

import 'theme.dart';

Expand All @@ -20,8 +18,6 @@ String titleCase(String phrase) {
return phrase.substring(0, 1).toUpperCase() + phrase.substring(1);
}

String generateSnippetName() => fluttering_phrases.generate();

RelativeRect calculatePopupMenuPosition(
BuildContext context, {
bool growUpwards = false,
Expand Down
1 change: 0 additions & 1 deletion pkgs/dartpad_ui/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ dependencies:
flutter_markdown: ^0.7.2
flutter_web_plugins:
sdk: flutter
fluttering_phrases: ^1.0.0
go_router: ^14.1.4
google_fonts: ^6.2.1
http: ^1.2.1
Expand Down
Loading